projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement better pattern for hanling actions in context menu
[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 a60e82a6c8bde1d4f326ba341dd5f908119a49ff..2e7c1a248800f94cf5bfdbe03c07e9e2f980d093 100644
(file)
--- a/
src/store/auth/auth-reducer.test.ts
+++ b/
src/store/auth/auth-reducer.test.ts
@@
-68,16
+68,15
@@
describe('auth-reducer', () => {
it('should set user details on success fetch', () => {
const initialState = undefined;
it('should set user details on success fetch', () => {
const initialState = undefined;
- const user
Details
= {
+ const user = {
email: "test@test.com",
email: "test@test.com",
- first
_n
ame: "John",
- last
_n
ame: "Doe",
+ first
N
ame: "John",
+ last
N
ame: "Doe",
uuid: "uuid",
uuid: "uuid",
- owner_uuid: "ownerUuid",
- is_admin: true
+ ownerUuid: "ownerUuid"
};
};
- const state = authReducer(initialState, actions.USER_DETAILS_SUCCESS(user
Details
));
+ const state = authReducer(initialState, actions.USER_DETAILS_SUCCESS(user));
expect(state).toEqual({
apiToken: undefined,
user: {
expect(state).toEqual({
apiToken: undefined,
user: {