Skip to content

Commit 4b34422

Browse files
committed
fix: type issue
1 parent 21ed68c commit 4b34422

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/client/src/mock.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ export const idToken = 'id_token_value';
9696

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

99-
export const mockFetchOidcConfig: (
100-
delay?: number
101-
) => Mock<unknown[], Promise<OidcConfigResponse>> = (delay = 0) =>
99+
export const mockFetchOidcConfig: (delay?: number) => Mock = (delay = 0) =>
102100
vi.fn(async () => {
103101
await new Promise((resolve) => {
104102
setTimeout(resolve, delay);
@@ -115,7 +113,7 @@ export const mockFetchOidcConfig: (
115113
};
116114
});
117115

118-
export const fetchOidcConfig: Mock<unknown[], Promise<OidcConfigResponse>> = mockFetchOidcConfig();
116+
export const fetchOidcConfig: Mock = mockFetchOidcConfig();
119117
export const requester = vi.fn();
120118
export const failingRequester = vi.fn().mockRejectedValue(new Error('Failed request'));
121119
export const navigate = vi.fn();

0 commit comments

Comments
 (0)