X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a884c545e3edad2cc2ac1210fc3148f922c155dc..a781af5eae4f4e7f6e07a2b205ad4e54e9e8ec7a:/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 a60e82a6..2e7c1a24 100644 --- 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; - const userDetails = { + const user = { email: "test@test.com", - first_name: "John", - last_name: "Doe", + firstName: "John", + lastName: "Doe", uuid: "uuid", - owner_uuid: "ownerUuid", - is_admin: true + ownerUuid: "ownerUuid" }; - const state = authReducer(initialState, actions.USER_DETAILS_SUCCESS(userDetails)); + const state = authReducer(initialState, actions.USER_DETAILS_SUCCESS(user)); expect(state).toEqual({ apiToken: undefined, user: {