diff --git a/src/auth/spec/AuthManager.spec.ts b/src/auth/spec/AuthManager.spec.ts index 3d730c4..5b2e5fc 100644 --- a/src/auth/spec/AuthManager.spec.ts +++ b/src/auth/spec/AuthManager.spec.ts @@ -3,6 +3,7 @@ import * as dotenv from 'dotenv' import { ServerType } from '@sasjs/utils/types' import axios from 'axios' import { + mockedCurrentUserApi, mockLoginAuthoriseRequiredResponse, mockLoginSuccessResponse } from './mockResponses' @@ -89,6 +90,7 @@ describe('AuthManager', () => { jest.spyOn(authManager, 'checkSession').mockImplementation(() => Promise.resolve({ isLoggedIn: false, + userName: '', loginForm: { name: 'test' } }) ) @@ -167,11 +169,12 @@ describe('AuthManager', () => { authCallback ) mockedAxios.get.mockImplementation(() => - Promise.resolve({ data: '