mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:10:43 +00:00
test: fix tui command completion typecheck
This commit is contained in:
@@ -56,7 +56,7 @@ describe("getSlashCommands", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("falls back to provider-resolved levels when thinkingLevels is empty (#76482)", () => {
|
||||
it("falls back to provider-resolved levels when thinkingLevels is empty (#76482)", async () => {
|
||||
const commands = getSlashCommands({
|
||||
provider: "anthropic",
|
||||
model: "claude-sonnet-4-6",
|
||||
@@ -64,7 +64,7 @@ describe("getSlashCommands", () => {
|
||||
});
|
||||
const think = commands.find((command) => command.name === "think");
|
||||
// Should fall back to listThinkingLevelLabels, not return empty completions
|
||||
const completions = think?.getArgumentCompletions?.("");
|
||||
const completions = await think?.getArgumentCompletions?.("");
|
||||
expect(completions?.length).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user