projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21704: fixed auth-reducer test
[arvados.git]
/
services
/
workbench2
/
src
/
store
/
auth
/
auth-reducer.test.ts
diff --git
a/services/workbench2/src/store/auth/auth-reducer.test.ts
b/services/workbench2/src/store/auth/auth-reducer.test.ts
index c0f8545711eee044a88ad11139db6a5e6a96dadf..0d83e390ed986cf2c1b1e695729e28995511595f 100644
(file)
--- a/
services/workbench2/src/store/auth/auth-reducer.test.ts
+++ b/
services/workbench2/src/store/auth/auth-reducer.test.ts
@@
-72,9
+72,13
@@
describe('auth-reducer', () => {
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
expect(state).toEqual({
apiToken: undefined,
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
expect(state).toEqual({
apiToken: undefined,
+ apiTokenExpiration: undefined,
+ apiTokenLocation: undefined,
config: mockConfig({}),
sshKeys: [],
sessions: [],
config: mockConfig({}),
sshKeys: [],
sessions: [],
+ extraApiToken: undefined,
+ extraApiTokenExpiration: undefined,
homeCluster: "uuid",
localCluster: "",
loginCluster: "",
homeCluster: "uuid",
localCluster: "",
loginCluster: "",
@@
-89,7
+93,9
@@
describe('auth-reducer', () => {
username: "username",
prefs: {},
isAdmin: false,
username: "username",
prefs: {},
isAdmin: false,
- isActive: true
+ isActive: true,
+ canManage: false,
+ canWrite: false,
}
});
});
}
});
});