File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/cli/src/auth/__tests__ Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ describe('RedoclyOAuthClient', () => {
2727 run : vi . fn ( ) . mockResolvedValue ( mockToken ) ,
2828 } ;
2929 vi . mocked ( RedoclyOAuthDeviceFlow ) . mockImplementation ( function ( ) {
30- return mockDeviceFlow as any ;
30+ return mockDeviceFlow ;
3131 } ) ;
3232
33+ console . log ( typeof RedoclyOAuthDeviceFlow ) ;
34+
3335 await client . login ( mockBaseUrl ) ;
3436
3537 expect ( mockDeviceFlow . run ) . toHaveBeenCalled ( ) ;
@@ -41,7 +43,7 @@ describe('RedoclyOAuthClient', () => {
4143 run : vi . fn ( ) . mockResolvedValue ( null ) ,
4244 } ;
4345 vi . mocked ( RedoclyOAuthDeviceFlow ) . mockImplementation ( function ( ) {
44- return mockDeviceFlow as any ;
46+ return mockDeviceFlow ;
4547 } ) ;
4648
4749 await expect ( client . login ( mockBaseUrl ) ) . rejects . toThrow ( 'Failed to login' ) ;
@@ -71,7 +73,7 @@ describe('RedoclyOAuthClient', () => {
7173 verifyApiKey : vi . fn ( ) . mockResolvedValue ( true ) ,
7274 } ;
7375 vi . mocked ( RedoclyOAuthDeviceFlow ) . mockImplementation ( function ( ) {
74- return mockDeviceFlow as any ;
76+ return mockDeviceFlow ;
7577 } ) ;
7678
7779 const result = await client . isAuthorized ( mockBaseUrl , 'test-api-key' ) ;
You can’t perform that action at this time.
0 commit comments