mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 19:30:44 +00:00
test: clarify slash command browser import assertion
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user