X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/827833da07f797f9ee445c62c301cbfbe01200dc..ad5208965b91e020b431cd9d2c1d15ff4b856450:/src/store/auth/auth-actions.test.ts diff --git a/src/store/auth/auth-actions.test.ts b/src/store/auth/auth-actions.test.ts index 231c37b4..ed223795 100644 --- a/src/store/auth/auth-actions.test.ts +++ b/src/store/auth/auth-actions.test.ts @@ -10,7 +10,8 @@ import { USER_FIRST_NAME_KEY, USER_LAST_NAME_KEY, USER_OWNER_UUID_KEY, - USER_UUID_KEY + USER_UUID_KEY, + USER_IS_ADMIN, USER_IDENTITY_URL, USER_PREFS } from "~/services/auth-service/auth-service"; import 'jest-localstorage-mock'; @@ -41,7 +42,10 @@ 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")); store.dispatch(initAuth()); @@ -53,7 +57,10 @@ describe('auth-actions', () => { firstName: "John", lastName: "Doe", uuid: "uuid", - ownerUuid: "ownerUuid" + ownerUuid: "ownerUuid", + identityUrl: "identityUrl", + prefs: {}, + isAdmin: false } }); });