Skip to content

Commit

Permalink
fix: type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao committed Oct 10, 2024
1 parent 21ed68c commit 4b34422
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/client/src/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ export const idToken = 'id_token_value';

export const currentUnixTimeStamp = Date.now() / 1000;

export const mockFetchOidcConfig: (
delay?: number
) => Mock<unknown[], Promise<OidcConfigResponse>> = (delay = 0) =>
export const mockFetchOidcConfig: (delay?: number) => Mock = (delay = 0) =>
vi.fn(async () => {
await new Promise((resolve) => {
setTimeout(resolve, delay);
Expand All @@ -115,7 +113,7 @@ export const mockFetchOidcConfig: (
};
});

export const fetchOidcConfig: Mock<unknown[], Promise<OidcConfigResponse>> = mockFetchOidcConfig();
export const fetchOidcConfig: Mock = mockFetchOidcConfig();
export const requester = vi.fn();
export const failingRequester = vi.fn().mockRejectedValue(new Error('Failed request'));
export const navigate = vi.fn();
Expand Down

0 comments on commit 4b34422

Please sign in to comment.