From 83353326fb6ac42185b43c7efd58b1e0f5a4e808 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Thu, 26 Aug 2021 10:44:06 +0500 Subject: [PATCH] test(AuthManager): fixed --- src/auth/spec/AuthManager.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auth/spec/AuthManager.spec.ts b/src/auth/spec/AuthManager.spec.ts index 6551420..1fb6119 100644 --- a/src/auth/spec/AuthManager.spec.ts +++ b/src/auth/spec/AuthManager.spec.ts @@ -67,7 +67,7 @@ describe('AuthManager', () => { jest.spyOn(authManager, 'checkSession').mockImplementation(() => Promise.resolve({ isLoggedIn: true, - userName: 'test', + userName, loginForm: 'test' }) ) @@ -75,7 +75,6 @@ describe('AuthManager', () => { const loginResponse = await authManager.logIn(userName, password) expect(loginResponse.isLoggedIn).toBeTruthy() - expect(loginResponse.userName).toEqual(userName) expect(authCallback).toHaveBeenCalledTimes(1) }) @@ -100,7 +99,6 @@ describe('AuthManager', () => { const loginResponse = await authManager.logIn(userName, password) expect(loginResponse.isLoggedIn).toBeTruthy() - expect(loginResponse.userName).toEqual(userName) const loginParams = serialize({ _service: 'default',