projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16159: Passes the token to be expire when calling the logout endpoint.
[arvados.git]
/
src
/
store
/
auth
/
auth-reducer.test.ts
diff --git
a/src/store/auth/auth-reducer.test.ts
b/src/store/auth/auth-reducer.test.ts
index e862a313d0f3dbbeddea3e71c36dbf68247ccb07..756feeeb6b835d7c3c845c88752a0aa6726dd6db 100644
(file)
--- a/
src/store/auth/auth-reducer.test.ts
+++ b/
src/store/auth/auth-reducer.test.ts
@@
-35,9
+35,10
@@
describe('auth-reducer', () => {
isAdmin: false,
isActive: true
};
isAdmin: false,
isActive: true
};
- const state = reducer(initialState, authActions.INIT({ user, token: "token" }));
+ const state = reducer(initialState, authActions.INIT
_USER
({ user, token: "token" }));
expect(state).toEqual({
apiToken: "token",
expect(state).toEqual({
apiToken: "token",
+ config: mockConfig({}),
user,
sshKeys: [],
sessions: [],
user,
sshKeys: [],
sessions: [],
@@
-67,6
+68,7
@@
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,
+ config: mockConfig({}),
sshKeys: [],
sessions: [],
homeCluster: "uuid",
sshKeys: [],
sessions: [],
homeCluster: "uuid",