File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,7 @@ export const idToken = 'id_token_value';
9696
9797export 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 ( ) ;
119117export const requester = vi . fn ( ) ;
120118export const failingRequester = vi . fn ( ) . mockRejectedValue ( new Error ( 'Failed request' ) ) ;
121119export const navigate = vi . fn ( ) ;
You can’t perform that action at this time.
0 commit comments