test: clarify slash command browser import assertion

This commit is contained in:
Peter Steinberger
2026-05-08 08:06:51 +01:00
parent 02fe0d8978
commit d16657e921

View File

@@ -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");