Skip to content

Commit 5b20f0b

Browse files
author
NIO
committed
fix(test): cast HTTP transport fetch mocks to typeof fetch
1 parent 41567cf commit 5b20f0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/plugin-sdk/provider-auth.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ describe("provider auth profile helpers", () => {
457457
await expect(
458458
resolveCopilotApiToken({
459459
githubToken: "github-token",
460-
fetchImpl,
460+
fetchImpl: fetchImpl as typeof fetch,
461461
cachePath: "/tmp/copilot-token-http-proof.json",
462462
loadJsonFileImpl: () => undefined,
463463
saveJsonFileImpl: () => {
@@ -508,7 +508,7 @@ describe("provider auth profile helpers", () => {
508508

509509
const result = await resolveCopilotApiToken({
510510
githubToken: "github-token",
511-
fetchImpl,
511+
fetchImpl: fetchImpl as typeof fetch,
512512
cachePath: "/tmp/copilot-token-http-happy.json",
513513
loadJsonFileImpl: () => undefined,
514514
saveJsonFileImpl: (path, value) => {

0 commit comments

Comments
 (0)