From cebd96adaee8525ed42b3b94cd45f9fd8996ecba Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 22 Aug 2025 08:35:31 -0700 Subject: [PATCH] fix: tests --- extensions/cli/src/slashCommands.test.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/extensions/cli/src/slashCommands.test.ts b/extensions/cli/src/slashCommands.test.ts index edb56d844..986ed17ee 100644 --- a/extensions/cli/src/slashCommands.test.ts +++ b/extensions/cli/src/slashCommands.test.ts @@ -1,6 +1,6 @@ // Import after mocking import { AssistantUnrolled } from "@continuedev/config-yaml"; -import { afterEach, beforeEach, describe, expect, vi, test } from "vitest"; +import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"; import * as workos from "./auth/workos.js"; import * as commands from "./commands/commands.js"; @@ -138,18 +138,10 @@ describe("handleSlashCommands", () => { expect(result).toBeNull(); }); - test("unknown slash command should return error", async () => { + test("unknown slash command should return null", async () => { const result = await handleSlashCommands("/unknown", mockAssistant); - expect(result).not.toBeNull(); - expect(result?.output).toBe("Unknown command: unknown"); - }); - - test("/org command should no longer exist (now merged into /config)", async () => { - const result = await handleSlashCommands("/org list", mockAssistant); - - expect(result).not.toBeNull(); - expect(result?.output).toBe("Unknown command: org"); + expect(result).toBeNull(); }); }); });