From e8d0bf057c2f86902b7658ab09d70dc517e5bf2e Mon Sep 17 00:00:00 2001 From: Pawel Kromplewski Date: Fri, 7 Dec 2018 12:21:54 +0100 Subject: [PATCH] Fix tests Feature #14452 Arvados-DCO-1.1-Signed-off-by: Pawel Kromplewski --- src/store/auth/auth-actions.test.ts | 6 +++++- src/store/auth/auth-reducer.test.ts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/store/auth/auth-actions.test.ts b/src/store/auth/auth-actions.test.ts index aeee2b3b..ed223795 100644 --- a/src/store/auth/auth-actions.test.ts +++ b/src/store/auth/auth-actions.test.ts @@ -11,7 +11,7 @@ import { USER_LAST_NAME_KEY, USER_OWNER_UUID_KEY, USER_UUID_KEY, - USER_IS_ADMIN + USER_IS_ADMIN, USER_IDENTITY_URL, USER_PREFS } from "~/services/auth-service/auth-service"; import 'jest-localstorage-mock'; @@ -42,6 +42,8 @@ describe('auth-actions', () => { localStorage.setItem(USER_FIRST_NAME_KEY, "John"); localStorage.setItem(USER_LAST_NAME_KEY, "Doe"); localStorage.setItem(USER_UUID_KEY, "uuid"); + localStorage.setItem(USER_IDENTITY_URL, "identityUrl"); + localStorage.setItem(USER_PREFS, JSON.stringify({})); localStorage.setItem(USER_OWNER_UUID_KEY, "ownerUuid"); localStorage.setItem(USER_IS_ADMIN, JSON.stringify("false")); @@ -56,6 +58,8 @@ describe('auth-actions', () => { lastName: "Doe", uuid: "uuid", ownerUuid: "ownerUuid", + identityUrl: "identityUrl", + prefs: {}, isAdmin: false } }); diff --git a/src/store/auth/auth-reducer.test.ts b/src/store/auth/auth-reducer.test.ts index b9f768f1..eb7e0c0d 100644 --- a/src/store/auth/auth-reducer.test.ts +++ b/src/store/auth/auth-reducer.test.ts @@ -77,6 +77,8 @@ describe('auth-reducer', () => { lastName: "Doe", uuid: "uuid", ownerUuid: "ownerUuid", + identityUrl: "identityUrl", + prefs: {}, isAdmin: false } }); -- 2.30.2