diff --git a/client/src/components/JobInformation/JobInformation.vue b/client/src/components/JobInformation/JobInformation.vue index 881f1a81e1ad..085cf6fec0bb 100644 --- a/client/src/components/JobInformation/JobInformation.vue +++ b/client/src/components/JobInformation/JobInformation.vue @@ -3,8 +3,8 @@ import CopyToClipboard from "components/CopyToClipboard"; import HelpText from "components/Help/HelpText"; import { JobDetailsProvider } from "components/providers/JobProvider"; import UtcDate from "components/UtcDate"; -import { formatDuration, intervalToDuration } from "date-fns"; import { NON_TERMINAL_STATES } from "components/WorkflowInvocationState/util"; +import { formatDuration, intervalToDuration } from "date-fns"; import { computed, ref } from "vue"; import { invocationForJob } from "@/api/invocations"; diff --git a/client/src/components/Workflow/test/json/invocation.json b/client/src/components/Workflow/test/json/invocation.json index d417f6ce475e..5cfb53fc9df4 100644 --- a/client/src/components/Workflow/test/json/invocation.json +++ b/client/src/components/Workflow/test/json/invocation.json @@ -33,5 +33,6 @@ "input_step_parameters": {}, "outputs": {}, "output_collections": {}, - "output_values": {} + "output_values": {}, + "messages": [] } \ No newline at end of file diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.test.ts b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.test.ts index c61108f4a5f6..751bdc5dd32a 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.test.ts +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.test.ts @@ -5,7 +5,6 @@ import { setActivePinia } from "pinia"; import { getLocalVue } from "tests/jest/helpers"; import type { WorkflowInvocation } from "@/api/invocations"; -import JOB_STATES_MODEL from "@/utils/job-states-model"; import invocationData from "../Workflow/test/json/invocation.json"; @@ -45,7 +44,7 @@ async function mountWorkflowInvocationState(invocation: WorkflowInvocation | nul describe("WorkflowInvocationState.vue", () => { it("determines that invocation and job states are terminal with terminal invocation", async () => { - const wrapper = await mountWorkflowInvocationState(invocationData); + const wrapper = await mountWorkflowInvocationState(invocationData as WorkflowInvocation); expect(isInvocationAndJobTerminal(wrapper)).toBe(true); }); @@ -58,7 +57,7 @@ describe("WorkflowInvocationState.vue", () => { const invocation = { ...invocationData, state: "new", - }; + } as WorkflowInvocation; const wrapper = await mountWorkflowInvocationState(invocation); expect(isInvocationAndJobTerminal(wrapper)).toBe(false); });