Skip to content

Commit 9bc63f8

Browse files
committed
test(openrouter): type stream mock calls
1 parent 0aea561 commit 9bc63f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/openrouter/index.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,9 @@ describe("openrouter provider hooks", () => {
770770

771771
it("forwards resolved API keys as explicit OpenRouter auth headers", async () => {
772772
const provider = await registerSingleProviderPlugin(openrouterPlugin);
773-
const baseStreamFn = vi.fn(() => createOpenRouterDoneStreamWithoutGeneration());
773+
const baseStreamFn = vi.fn((..._args: unknown[]) =>
774+
createOpenRouterDoneStreamWithoutGeneration(),
775+
);
774776

775777
const wrapped = provider.wrapStreamFn?.({
776778
provider: "openrouter",

0 commit comments

Comments
 (0)