From d16657e9218063e5f285cb6622f49bd88cbb0bca Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 8 May 2026 08:06:51 +0100 Subject: [PATCH] test: clarify slash command browser import assertion --- ui/src/ui/chat/slash-commands.browser-import.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/ui/chat/slash-commands.browser-import.test.ts b/ui/src/ui/chat/slash-commands.browser-import.test.ts index d7e9c7ed8eb..5028e4ade5c 100644 --- a/ui/src/ui/chat/slash-commands.browser-import.test.ts +++ b/ui/src/ui/chat/slash-commands.browser-import.test.ts @@ -27,7 +27,7 @@ describe("slash command browser import", () => { ); const mod = (await import(browserImportPath)) as SlashCommandsModule; - expect(mod.SLASH_COMMANDS.some((command) => command.name === "think")).toBe(true); + expect(mod.SLASH_COMMANDS.map((command) => command.name)).toContain("think"); expect(slashCommands).toContain("commands-registry.shared.js"); expect(sharedRegistry).toContain("thinking.shared.js"); expect(sharedRegistry).not.toContain("./thinking.js");