Skip to content

Commit 4073bdc

Browse files
committed
Fixes tests
1 parent a489a8b commit 4073bdc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/api/providers/__tests__/unbound.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ describe("UnboundHandler", () => {
192192
temperature: 0,
193193
max_tokens: 8192,
194194
}),
195+
expect.objectContaining({
196+
headers: expect.objectContaining({
197+
"X-Unbound-Metadata": expect.stringContaining("roo-code"),
198+
}),
199+
}),
195200
)
196201
})
197202

@@ -233,6 +238,11 @@ describe("UnboundHandler", () => {
233238
messages: [{ role: "user", content: "Test prompt" }],
234239
temperature: 0,
235240
}),
241+
expect.objectContaining({
242+
headers: expect.objectContaining({
243+
"X-Unbound-Metadata": expect.stringContaining("roo-code"),
244+
}),
245+
}),
236246
)
237247
expect(mockCreate.mock.calls[0][0]).not.toHaveProperty("max_tokens")
238248
})

0 commit comments

Comments
 (0)