Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
mockGithubIdpCloudAuthStrategy,
mockGoogleIdpCloudAuthStrategy,
mockTokenResponse,
mockTokenResponseNew
mockTokenResponseNew,
} from 'src/__mocks__/cloud-auth';
import { Test, TestingModule } from '@nestjs/testing';
import { EventEmitter2 } from '@nestjs/event-emitter';
Expand All @@ -31,8 +31,8 @@ import { GoogleIdpCloudAuthStrategy } from 'src/modules/cloud/auth/auth-strategy
import { CloudAuthAnalytics } from 'src/modules/cloud/auth/cloud-auth.analytics';
import { CloudAuthIdpType, CloudAuthStatus } from 'src/modules/cloud/auth/models';
import {
CloudOauthMisconfigurationException,
CloudOauthMissedRequiredDataException,
CloudOauthUnexpectedErrorException,
CloudOauthUnknownAuthorizationRequestException,
} from 'src/modules/cloud/auth/exceptions';
import { InternalServerErrorException } from '@nestjs/common';
Expand Down Expand Up @@ -216,7 +216,7 @@ describe('CloudAuthService', () => {
error: 'bad request',
error_description: 'some unknown error message',
},
)).rejects.toThrow(CloudOauthMisconfigurationException);
)).rejects.toThrow(CloudOauthUnexpectedErrorException);
});
it('should throw an error if error field in query parameters (CloudOauthMissedRequiredDataException)', async () => {
expect(service['authRequests'].size).toEqual(1);
Expand Down