Skip to content

Commit e0a83c0

Browse files
committed
test: fix tui command completion typecheck
1 parent 45a5374 commit e0a83c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tui/commands.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ describe("getSlashCommands", () => {
5656
]);
5757
});
5858

59-
it("falls back to provider-resolved levels when thinkingLevels is empty (#76482)", () => {
59+
it("falls back to provider-resolved levels when thinkingLevels is empty (#76482)", async () => {
6060
const commands = getSlashCommands({
6161
provider: "anthropic",
6262
model: "claude-sonnet-4-6",
6363
thinkingLevels: [], // empty from lightweight session row
6464
});
6565
const think = commands.find((command) => command.name === "think");
6666
// Should fall back to listThinkingLevelLabels, not return empty completions
67-
const completions = think?.getArgumentCompletions?.("");
67+
const completions = await think?.getArgumentCompletions?.("");
6868
expect(completions?.length).toBeGreaterThan(0);
6969
});
7070
});

0 commit comments

Comments
 (0)