projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 14452-my-account
[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 592191caec493503bcce69174c78f81fdedefee4..b9f768f1cb0a42a9653d119cc577e516b21407ba 100644
(file)
--- a/
src/store/auth/auth-reducer.test.ts
+++ b/
src/store/auth/auth-reducer.test.ts
@@
-31,12
+31,14
@@
describe('auth-reducer', () => {
uuid: "uuid",
ownerUuid: "ownerUuid",
identityUrl: "identityUrl",
uuid: "uuid",
ownerUuid: "ownerUuid",
identityUrl: "identityUrl",
- prefs: {}
+ prefs: {},
+ isAdmin: false
};
const state = reducer(initialState, authActions.INIT({ user, token: "token" }));
expect(state).toEqual({
apiToken: "token",
};
const state = reducer(initialState, authActions.INIT({ user, token: "token" }));
expect(state).toEqual({
apiToken: "token",
- user
+ user,
+ sshKeys: []
});
});
});
});
@@
-61,7
+63,8
@@
describe('auth-reducer', () => {
uuid: "uuid",
ownerUuid: "ownerUuid",
identityUrl: "identityUrl",
uuid: "uuid",
ownerUuid: "ownerUuid",
identityUrl: "identityUrl",
- prefs: {}
+ prefs: {},
+ isAdmin: false
};
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
};
const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user));
@@
-74,6
+77,7
@@
describe('auth-reducer', () => {
lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
lastName: "Doe",
uuid: "uuid",
ownerUuid: "ownerUuid",
+ isAdmin: false
}
});
});
}
});
});