From 1fabb9e6108d9f0bf9b2ba89294d0fafc2a71691 Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Sun, 28 Mar 2021 19:04:10 +0200 Subject: [PATCH] test: fix --- src/auth/spec/AuthManager.spec.ts | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/auth/spec/AuthManager.spec.ts b/src/auth/spec/AuthManager.spec.ts index 29b01ad..ce4a5d1 100644 --- a/src/auth/spec/AuthManager.spec.ts +++ b/src/auth/spec/AuthManager.spec.ts @@ -176,33 +176,7 @@ describe('AuthManager', () => { const response = await authManager.checkSession() expect(response.isLoggedIn).toBeTruthy() - expect(mockedAxios.get).toHaveBeenNthCalledWith(1, `/SASLogon/login`, { - withCredentials: true, - responseType: 'text', - transformResponse: undefined, - headers: { - Accept: '*/*', - 'Content-Type': 'text/plain' - } - }) - - done() - }) - - it('should check and return session information if logged in', async (done) => { - const authManager = new AuthManager( - serverUrl, - serverType, - requestClient, - authCallback - ) - mockedAxios.get.mockImplementation(() => - Promise.resolve({ data: '