21704: fixed auth-reducer test
authorLisa Knox <lisaknox83@gmail.com>
Fri, 24 May 2024 15:50:34 +0000 (11:50 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Fri, 24 May 2024 15:50:34 +0000 (11:50 -0400)
Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

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

index c0f8545711eee044a88ad11139db6a5e6a96dadf..0d83e390ed986cf2c1b1e695729e28995511595f 100644 (file)
@@ -72,9 +72,13 @@ describe('auth-reducer', () => {
         const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
         expect(state).toEqual({
             apiToken: undefined,
+            apiTokenExpiration: undefined,
+            apiTokenLocation: undefined,
             config: mockConfig({}),
             sshKeys: [],
             sessions: [],
+            extraApiToken: undefined,
+            extraApiTokenExpiration: undefined,
             homeCluster: "uuid",
             localCluster: "",
             loginCluster: "",
@@ -89,7 +93,9 @@ describe('auth-reducer', () => {
                 username: "username",
                 prefs: {},
                 isAdmin: false,
-                isActive: true
+                isActive: true,
+                canManage: false,
+                canWrite: false,
             }
         });
     });