X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ec2ce1a965e15cb272737251b56bca2c1529ebff..c133ed0f3634fe29b082a4501abd04f05f6221d5:/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 38cf1581d3..30bee3bc1b 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: {} }); }); @@ -84,7 +71,9 @@ describe('auth-reducer', () => { sessions: [], homeCluster: "", localCluster: "", + loginCluster: "", remoteHosts: {}, + remoteHostsConfig: {}, user: { email: "test@test.com", firstName: "John",