Skip to content

Commit 9c6d341

Browse files
committed
test(sidekick): expect capture in contributed control inventory
1 parent 7b4e280 commit 9c6d341

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎packages/cli/tests/repl-sidekick-journey.test.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5225,7 +5225,7 @@ describe("Contributed Sidekick controls", () => {
52255225
expect(calls).toBe(1);
52265226
expect(
52275227
held.host.fake.prompts[0]?.split("\n").filter((line) => line.startsWith("- <Cwd")),
5228-
).toEqual(["- <Cwd>…</Cwd> — write. props: label"]);
5228+
).toEqual(['- <Cwd as="result">…</Cwd> — write. props: label']);
52295229
expect(held.host.fake.prompts[1]).toContain("paired-cwd");
52305230
held.host.fake.script({ reply: '<Cwd as="refused" />' });
52315231
held.host.fake.script({ reply: "<Output>Self-closing Cwd was refused.</Output>" });
@@ -5423,8 +5423,10 @@ describe("Contributed Sidekick controls", () => {
54235423
expect(counts.initialized).toBe(1);
54245424
expect(counts.conversations).toBe(1);
54255425
expect(counts.calls).toEqual(["read", "write"]);
5426-
expect(held.host.fake.prompts[0]).toContain("<Contributed /> — read");
5427-
expect(held.host.fake.prompts[0]).toContain("<Contributed>…</Contributed> — write");
5426+
expect(held.host.fake.prompts[0]).toContain('<Contributed as="result" /> — read');
5427+
expect(held.host.fake.prompts[0]).toContain(
5428+
'<Contributed as="result">…</Contributed> — write',
5429+
);
54285430
expect(held.host.fake.prompts[1]).toContain('"count": 1');
54295431
expect(held.host.fake.prompts[1]).toContain('"count": 2');
54305432
expect(held.host.fake.prompts[0]).toContain("contribution-conversation");

0 commit comments

Comments
 (0)