X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6e2546d78a606e19fc974b5e4443880cf6da282a..818c47686e619fbdc3bfa11edd290d0c9e0db64b:/src/store/auth/auth-reducer.test.ts?ds=sidebyside diff --git a/src/store/auth/auth-reducer.test.ts b/src/store/auth/auth-reducer.test.ts index 38cf1581d3..e862a313d0 100644 --- a/src/store/auth/auth-reducer.test.ts +++ b/src/store/auth/auth-reducer.test.ts @@ -43,22 +43,9 @@ describe('auth-reducer', () => { sessions: [], homeCluster: "zzzzz", localCluster: "", - remoteHosts: {} - }); - }); - - it('should save api token', () => { - const initialState = undefined; - - const state = reducer(initialState, authActions.SAVE_API_TOKEN("token")); - expect(state).toEqual({ - apiToken: "token", - user: undefined, - sshKeys: [], - sessions: [], - homeCluster: "", - localCluster: "", + loginCluster: "", remoteHosts: {}, + remoteHostsConfig: {} }); }); @@ -82,9 +69,11 @@ describe('auth-reducer', () => { apiToken: undefined, sshKeys: [], sessions: [], - homeCluster: "", + homeCluster: "uuid", localCluster: "", + loginCluster: "", remoteHosts: {}, + remoteHostsConfig: {}, user: { email: "test@test.com", firstName: "John",