Update OpenCode command shape test
This commit is contained in:
+6
-1
@@ -33,7 +33,12 @@ describe("OpenCodeAgentSession slash command timeout handling", () => {
|
|||||||
|
|
||||||
await expect(session.listCommands?.()).resolves.toEqual(
|
await expect(session.listCommands?.()).resolves.toEqual(
|
||||||
expect.arrayContaining([
|
expect.arrayContaining([
|
||||||
{ name: "compact", description: "Compact the current session", argumentHint: "" },
|
{
|
||||||
|
name: "compact",
|
||||||
|
description: "Compact the current session",
|
||||||
|
argumentHint: "",
|
||||||
|
kind: "command",
|
||||||
|
},
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
await expect(session.listCommands?.()).resolves.not.toEqual(
|
await expect(session.listCommands?.()).resolves.not.toEqual(
|
||||||
|
|||||||
Reference in New Issue
Block a user