test: fix tui command completion typecheck

This commit is contained in:
Peter Steinberger
2026-05-03 13:01:38 +01:00
parent 45a5374ca8
commit e0a83c0046

View File

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