X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/818c47686e619fbdc3bfa11edd290d0c9e0db64b..42ec7892e74f6d9d19f2f0155830565f447a861f:/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 e862a313d0..756feeeb6b 100644 --- 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 }; - const state = reducer(initialState, authActions.INIT({ user, token: "token" })); + const state = reducer(initialState, authActions.INIT_USER({ user, token: "token" })); expect(state).toEqual({ apiToken: "token", + config: mockConfig({}), user, sshKeys: [], sessions: [], @@ -67,6 +68,7 @@ describe('auth-reducer', () => { const state = reducer(initialState, authActions.USER_DETAILS_SUCCESS(user)); expect(state).toEqual({ apiToken: undefined, + config: mockConfig({}), sshKeys: [], sessions: [], homeCluster: "uuid",