Skip to content

Commit cebd96a

Browse files
committed
fix: tests
1 parent c959935 commit cebd96a

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

extensions/cli/src/slashCommands.test.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Import after mocking
22
import { AssistantUnrolled } from "@continuedev/config-yaml";
3-
import { afterEach, beforeEach, describe, expect, vi, test } from "vitest";
3+
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
44

55
import * as workos from "./auth/workos.js";
66
import * as commands from "./commands/commands.js";
@@ -138,18 +138,10 @@ describe("handleSlashCommands", () => {
138138
expect(result).toBeNull();
139139
});
140140

141-
test("unknown slash command should return error", async () => {
141+
test("unknown slash command should return null", async () => {
142142
const result = await handleSlashCommands("/unknown", mockAssistant);
143143

144-
expect(result).not.toBeNull();
145-
expect(result?.output).toBe("Unknown command: unknown");
146-
});
147-
148-
test("/org command should no longer exist (now merged into /config)", async () => {
149-
const result = await handleSlashCommands("/org list", mockAssistant);
150-
151-
expect(result).not.toBeNull();
152-
expect(result?.output).toBe("Unknown command: org");
144+
expect(result).toBeNull();
153145
});
154146
});
155147
});

0 commit comments

Comments
 (0)