17427: Fix test
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 12 Apr 2021 16:10:18 +0000 (12:10 -0400)
committerDaniel KutyƂa <daniel.kutyla@contractors.roche.com>
Fri, 23 Apr 2021 11:02:56 +0000 (13:02 +0200)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

src/store/workflow-panel/workflow-panel-actions.test.ts

index 86dba452030a1e9e3fe10957a8b36fd725f1e77d..4eff45dc63fe65cd89d25386deae3c3de114b537 100644 (file)
@@ -2,7 +2,6 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { getNewExtraToken, initAuth } from "./auth-action";
 import { API_TOKEN_KEY } from "~/services/auth-service/auth-service";
 
 import 'jest-localstorage-mock';
@@ -22,6 +21,8 @@ import { runProcessPanelActions } from '~/store/run-process-panel/run-process-pa
 import { initialize } from 'redux-form';
 import { RUN_PROCESS_BASIC_FORM } from '~/views/run-process-panel/run-process-basic-form';
 import { RUN_PROCESS_INPUTS_FORM } from '~/views/run-process-panel/run-process-inputs-form';
+import { ResourceKind } from '~/models/resource';
+import { WorkflowResource } from '~/models/workflow';
 
 describe('workflow-panel-actions', () => {
     const axiosInst = Axios.create({ headers: {} });
@@ -49,11 +50,19 @@ describe('workflow-panel-actions', () => {
     });
 
     it('opens the run process panel', async () => {
-        const wflist = [{
+        const wflist: WorkflowResource[] = [{
             uuid: "zzzzz-7fd4e-0123456789abcde",
             name: "foo",
             description: "",
-            definition: "$graph: []"
+            definition: "$graph: []",
+            kind: ResourceKind.WORKFLOW,
+            ownerUuid: "",
+            createdAt: "",
+            modifiedByClientUuid: "",
+            modifiedByUserUuid: "",
+            modifiedAt: "",
+            href: "",
+            etag: ""
         }];
         axiosMock
             .onGet("/workflows")