Skip to content

Commit

Permalink
Fixup client tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Mar 6, 2024
1 parent 853fb92 commit bf78004
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/components/JobInformation/JobInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/Workflow/test/json/invocation.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"input_step_parameters": {},
"outputs": {},
"output_collections": {},
"output_values": {}
"output_values": {},
"messages": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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);
});

Expand All @@ -58,7 +57,7 @@ describe("WorkflowInvocationState.vue", () => {
const invocation = {
...invocationData,
state: "new",
};
} as WorkflowInvocation;
const wrapper = await mountWorkflowInvocationState(invocation);
expect(isInvocationAndJobTerminal(wrapper)).toBe(false);
});
Expand Down

0 comments on commit bf78004

Please sign in to comment.