projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle SELECT_WORKFLOW_PRESET action in reducer
[arvados-workbench2.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 8cde324549008b4790ff4d4595e4bfa46d55a948..b9f768f1cb0a42a9653d119cc577e516b21407ba 100644
(file)
--- a/
src/store/auth/auth-reducer.test.ts
+++ b/
src/store/auth/auth-reducer.test.ts
@@
-29,7
+29,10
@@
describe('auth-reducer', () => {
firstName: "John",
lastName: "Doe",
uuid: "uuid",
firstName: "John",
lastName: "Doe",
uuid: "uuid",
- ownerUuid: "ownerUuid"
+ ownerUuid: "ownerUuid",
+ identityUrl: "identityUrl",
+ prefs: {},
+ isAdmin: false
};
const state = reducer(initialState, authActions.INIT({ user, token: "token" }));
expect(state).toEqual({
};
const state = reducer(initialState, authActions.INIT({ user, token: "token" }));
expect(state).toEqual({
@@
-58,7
+61,10
@@
describe('auth-reducer', () => {
firstName: "John",
lastName: "Doe",
uuid: "uuid",
firstName: "John",
lastName: "Doe",
uuid: "uuid",
- ownerUuid: "ownerUuid"
+ ownerUuid: "ownerUuid",
+ identityUrl: "identityUrl",
+ prefs: {},
+ isAdmin: false
};
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
};
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
@@
-71,6
+77,7
@@
describe('auth-reducer', () => {
lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
+ isAdmin: false
}
});
});
}
});
});