Skip to content

Commit 4a0dee1

Browse files
committed
Verify File.Patch in the REPL syntax catalog
1 parent 4893d83 commit 4a0dee1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/cli/tests/repl-include-pty.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe("REPL includes through the production source terminal", () => {
201201
expect(modelOf(retained).terminal?.output).toContain("First greeting rendered.");
202202
yield* submit(
203203
pty,
204-
'<Syntax />\n<Syntax names={["Greeting", "Syntax", "Evaluate", "File", "File.Delete", "Dir"]} />',
204+
'<Syntax />\n<Syntax names={["Greeting", "Syntax", "Evaluate", "File", "File.Delete", "File.Patch", "Dir"]} />',
205205
);
206206
retained = yield* completed(pty, history, 2);
207207
const syntax = modelOf(retained).terminal?.output ?? "";
@@ -211,7 +211,8 @@ describe("REPL includes through the production source terminal", () => {
211211
expect(syntax).not.toContain("<Local>");
212212
expect(syntax).not.toContain("<RootLocal>");
213213
expect(syntax).not.toContain("POISON");
214-
expect(syntax.match(/\(protected component\)/g)).toHaveLength(10);
214+
expect(syntax).toContain("Exactly one passive fenced unified diff");
215+
expect(syntax.match(/\(protected component\)/g)).toHaveLength(12);
215216
yield* refused(pty, history, "Local");
216217
yield* refused(pty, history, "RootLocal");
217218
location = yield* leave(pty);

0 commit comments

Comments
 (0)