@@ -18,7 +18,7 @@ import {
18
18
mockGithubIdpCloudAuthStrategy ,
19
19
mockGoogleIdpCloudAuthStrategy ,
20
20
mockTokenResponse ,
21
- mockTokenResponseNew
21
+ mockTokenResponseNew ,
22
22
} from 'src/__mocks__/cloud-auth' ;
23
23
import { Test , TestingModule } from '@nestjs/testing' ;
24
24
import { EventEmitter2 } from '@nestjs/event-emitter' ;
@@ -31,8 +31,8 @@ import { GoogleIdpCloudAuthStrategy } from 'src/modules/cloud/auth/auth-strategy
31
31
import { CloudAuthAnalytics } from 'src/modules/cloud/auth/cloud-auth.analytics' ;
32
32
import { CloudAuthIdpType , CloudAuthStatus } from 'src/modules/cloud/auth/models' ;
33
33
import {
34
- CloudOauthMisconfigurationException ,
35
34
CloudOauthMissedRequiredDataException ,
35
+ CloudOauthUnexpectedErrorException ,
36
36
CloudOauthUnknownAuthorizationRequestException ,
37
37
} from 'src/modules/cloud/auth/exceptions' ;
38
38
import { InternalServerErrorException } from '@nestjs/common' ;
@@ -216,7 +216,7 @@ describe('CloudAuthService', () => {
216
216
error : 'bad request' ,
217
217
error_description : 'some unknown error message' ,
218
218
} ,
219
- ) ) . rejects . toThrow ( CloudOauthMisconfigurationException ) ;
219
+ ) ) . rejects . toThrow ( CloudOauthUnexpectedErrorException ) ;
220
220
} ) ;
221
221
it ( 'should throw an error if error field in query parameters (CloudOauthMissedRequiredDataException)' , async ( ) => {
222
222
expect ( service [ 'authRequests' ] . size ) . toEqual ( 1 ) ;
0 commit comments