Skip to content

Commit 6e3b199

Browse files
committed
Fix tests
1 parent c20d51e commit 6e3b199

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/api/providers/__tests__/roo.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ describe("RooHandler", () => {
470470
})
471471

472472
describe("reasoning effort support", () => {
473-
it("should not include reasoning when not enabled", async () => {
473+
it("should include reasoning with enabled: false when not enabled", async () => {
474474
handler = new RooHandler(mockOptions)
475475
const stream = handler.createMessage(systemPrompt, messages)
476476
for await (const _chunk of stream) {
@@ -483,12 +483,10 @@ describe("RooHandler", () => {
483483
messages: expect.any(Array),
484484
stream: true,
485485
stream_options: { include_usage: true },
486+
reasoning: { enabled: false },
486487
}),
487488
undefined,
488489
)
489-
// Verify reasoning is not included
490-
const callArgs = mockCreate.mock.calls[0][0]
491-
expect(callArgs.reasoning).toBeUndefined()
492490
})
493491

494492
it("should include reasoning with enabled: false when explicitly disabled", async () => {

src/api/providers/fetchers/__tests__/roo.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ describe("getRooModels", () => {
7575
cacheReadsPrice: 50, // 0.00005 * 1_000_000
7676
description: "Fast coding model",
7777
deprecated: false,
78+
isFree: false,
7879
},
7980
})
8081
})
@@ -122,6 +123,7 @@ describe("getRooModels", () => {
122123
cacheReadsPrice: undefined,
123124
description: "Model that requires reasoning",
124125
deprecated: false,
126+
isFree: false,
125127
})
126128
})
127129

@@ -167,6 +169,7 @@ describe("getRooModels", () => {
167169
cacheReadsPrice: undefined,
168170
description: "Normal model without reasoning",
169171
deprecated: false,
172+
isFree: false,
170173
})
171174
})
172175

0 commit comments

Comments
 (0)