Skip to content

Commit

Permalink
Issue #SB-000 test: Updated testcases for authutil.
Browse files Browse the repository at this point in the history
  • Loading branch information
swayangjit committed Mar 6, 2020
1 parent a86a534 commit 6236bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/util/auth-util.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {AuthUtil} from './auth-util';
import {ApiConfig, ApiService, Response, ResponseCode, HttpServerError} from '../../api';
import {ApiConfig, ApiService, Response, ResponseCode, HttpClientError} from '../../api';
import {anyString, anything, instance, objectContaining, reset, verify, when} from 'ts-mockito';
import {SharedPreferences} from '../../util/shared-preferences';
import {EventNamespace, EventsBusService} from '../../events-bus';
Expand Down Expand Up @@ -267,7 +267,7 @@ describe('AuthUtil', () => {
// arrange
const mockApConfig: ApiConfig = {} as Partial<ApiConfig> as ApiConfig;

const badRequestError = new HttpServerError('', (() => {
const badRequestError = new HttpClientError('', (() => {
const res = new Response();
res.responseCode = ResponseCode.HTTP_BAD_REQUEST;
return res;
Expand Down

0 comments on commit 6236bc6

Please sign in to comment.