Skip to content

Commit 36d75af

Browse files
Merge pull request #3709 from RedisInsight/be/bugfix/fix-utests
fix utests
2 parents 3840380 + 1ca5b2f commit 36d75af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redisinsight/api/src/modules/cloud/auth/cloud-auth.service.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
mockGithubIdpCloudAuthStrategy,
1919
mockGoogleIdpCloudAuthStrategy,
2020
mockTokenResponse,
21-
mockTokenResponseNew
21+
mockTokenResponseNew,
2222
} from 'src/__mocks__/cloud-auth';
2323
import { Test, TestingModule } from '@nestjs/testing';
2424
import { EventEmitter2 } from '@nestjs/event-emitter';
@@ -31,8 +31,8 @@ import { GoogleIdpCloudAuthStrategy } from 'src/modules/cloud/auth/auth-strategy
3131
import { CloudAuthAnalytics } from 'src/modules/cloud/auth/cloud-auth.analytics';
3232
import { CloudAuthIdpType, CloudAuthStatus } from 'src/modules/cloud/auth/models';
3333
import {
34-
CloudOauthMisconfigurationException,
3534
CloudOauthMissedRequiredDataException,
35+
CloudOauthUnexpectedErrorException,
3636
CloudOauthUnknownAuthorizationRequestException,
3737
} from 'src/modules/cloud/auth/exceptions';
3838
import { InternalServerErrorException } from '@nestjs/common';
@@ -216,7 +216,7 @@ describe('CloudAuthService', () => {
216216
error: 'bad request',
217217
error_description: 'some unknown error message',
218218
},
219-
)).rejects.toThrow(CloudOauthMisconfigurationException);
219+
)).rejects.toThrow(CloudOauthUnexpectedErrorException);
220220
});
221221
it('should throw an error if error field in query parameters (CloudOauthMissedRequiredDataException)', async () => {
222222
expect(service['authRequests'].size).toEqual(1);

0 commit comments

Comments
 (0)