Fix tests 14452-my-account
authorPawel Kromplewski <pawel.kromplewski@contractors.roche.com>
Fri, 7 Dec 2018 11:21:54 +0000 (12:21 +0100)
committerPawel Kromplewski <pawel.kromplewski@contractors.roche.com>
Fri, 7 Dec 2018 11:21:54 +0000 (12:21 +0100)
Feature #14452

Arvados-DCO-1.1-Signed-off-by: Pawel Kromplewski <pawel.kromplewski@contractors.roche.com>

src/store/auth/auth-actions.test.ts
src/store/auth/auth-reducer.test.ts

index aeee2b3b7c8f66d90b4e26c6bb4c09a3c10337e2..ed2237953932570d27921c21c0c774e0f0932b89 100644 (file)
@@ -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
             }
         });
index b9f768f1cb0a42a9653d119cc577e516b21407ba..eb7e0c0dac541501782d1929a9a882ae09c98072 100644 (file)
@@ -77,6 +77,8 @@ describe('auth-reducer', () => {
                 lastName: "Doe",
                 uuid: "uuid",
                 ownerUuid: "ownerUuid",
+                identityUrl: "identityUrl",
+                prefs: {},
                 isAdmin: false
             }
         });