20219: Replace API & websocket log loading with webdav polling
[arvados-workbench2.git] / src / store / link-account-panel / link-account-panel-reducer.test.ts
index 4cb88a85addd2a9893172f3267a9c79afbb41b9a..b8f402d29c016c0ff87ea9fa8f1ccf3b76664085 100644 (file)
@@ -2,9 +2,8 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { linkAccountPanelReducer, LinkAccountPanelError, LinkAccountPanelStatus, OriginatingUser } from "~/store/link-account-panel/link-account-panel-reducer";
-import { linkAccountPanelActions } from "~/store/link-account-panel/link-account-panel-actions";
-import { UserResource } from "~/models/user";
+import { linkAccountPanelReducer, LinkAccountPanelError, LinkAccountPanelStatus, OriginatingUser } from "store/link-account-panel/link-account-panel-reducer";
+import { linkAccountPanelActions } from "store/link-account-panel/link-account-panel-actions";
 
 describe('link-account-panel-reducer', () => {
     const initialState = undefined;
@@ -16,6 +15,8 @@ describe('link-account-panel-reducer', () => {
         const state = linkAccountPanelReducer(initialState, linkAccountPanelActions.LINK_INIT({targetUser}));
         expect(state).toEqual({
             targetUser,
+            isProcessing: false,
+            selectedCluster: undefined,
             targetUserToken: undefined,
             userToLink: undefined,
             userToLinkToken: undefined,
@@ -41,6 +42,8 @@ describe('link-account-panel-reducer', () => {
         expect(state).toEqual({
             targetUser,
             targetUserToken,
+            isProcessing: false,
+            selectedCluster: undefined,
             userToLink,
             userToLinkToken,
             originatingUser: OriginatingUser.TARGET_USER,
@@ -63,6 +66,8 @@ describe('link-account-panel-reducer', () => {
         expect(state).toEqual({
             targetUser,
             targetUserToken: undefined,
+            isProcessing: false,
+            selectedCluster: undefined,
             userToLink,
             userToLinkToken: undefined,
             originatingUser: OriginatingUser.TARGET_USER,