21720: added missing user properties in auth-reducer.test
authorLisa Knox <lisaknox83@gmail.com>
Mon, 20 May 2024 15:37:22 +0000 (11:37 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Mon, 20 May 2024 15:37:22 +0000 (11:37 -0400)
Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

services/workbench2/src/store/auth/auth-reducer.test.ts

index 6a1fb87faa8c10d8fc30a47bc3005c3ead1a3df0..c0f8545711eee044a88ad11139db6a5e6a96dadf 100644 (file)
@@ -33,7 +33,9 @@ describe('auth-reducer', () => {
             username: "username",
             prefs: {},
             isAdmin: false,
-            isActive: true
+            isActive: true,
+            canWrite: false,
+            canManage: false,
         };
         const state = reducer(initialState, authActions.INIT_USER({ user, token: "token" }));
         expect(state).toEqual({
@@ -62,7 +64,9 @@ describe('auth-reducer', () => {
             username: "username",
             prefs: {},
             isAdmin: false,
-            isActive: true
+            isActive: true,
+            canWrite: false,
+            canManage: false,
         };
 
         const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));