X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b58c1d9f7ce635aeab54c02faa516593305967e3..d4afb5d44f63394461ff1571039a74b3462d8ae6:/src/store/auth/auth-action.test.ts diff --git a/src/store/auth/auth-action.test.ts b/src/store/auth/auth-action.test.ts index 926121e39a..801d9e33ee 100644 --- a/src/store/auth/auth-action.test.ts +++ b/src/store/auth/auth-action.test.ts @@ -21,9 +21,9 @@ import 'jest-localstorage-mock'; import { createServices } from "~/services/services"; import { configureStore, RootStore } from "../store"; import createBrowserHistory from "history/createBrowserHistory"; -import { Config, mockConfig } from '~/common/config'; +import { mockConfig } from '~/common/config'; import { ApiActions } from "~/services/api/api-actions"; -import { ACCOUNT_LINK_STATUS_KEY} from '~/services/link-account-service/link-account-service'; +import { ACCOUNT_LINK_STATUS_KEY } from '~/services/link-account-service/link-account-service'; describe('auth-actions', () => { let reducer: (state: AuthState | undefined, action: AuthAction) => any; @@ -67,7 +67,16 @@ describe('auth-actions', () => { sshKeys: [], homeCluster: "zzzzz", localCluster: "zzzzz", - remoteHostsConfig: {}, + loginCluster: undefined, + remoteHostsConfig: { + "zzzzz": { + "remoteHosts": { + "xc59z": "xc59z.arvadosapi.com", + }, + "rootUrl": "https://zzzzz.arvadosapi.com", + "uuidPrefix": "zzzzz", + }, + }, remoteHosts: { zzzzz: "zzzzz.arvadosapi.com", xc59z: "xc59z.arvadosapi.com" @@ -89,7 +98,7 @@ describe('auth-actions', () => { "email": "", "loggedIn": false, "remoteHost": "xc59z.arvadosapi.com", - "status": 0, + "status": 1, "token": "", "username": "" }],