Skip to content

Commit

Permalink
Fix extraneous output in Workflow/Editor/Index.test.ts.
Browse files Browse the repository at this point in the history
An actual bug and the hack to work around Vue 2 warning in useMagicKeys.
  • Loading branch information
jmchilton committed Nov 19, 2024
1 parent b57191a commit bc39701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Workflow/Editor/Index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("Index", () => {
const datatypesStore = useDatatypesMapperStore();
datatypesStore.datatypesMapper = testDatatypesMapper;
mockLoadWorkflow.mockResolvedValue({ steps: {} });
MockGetVersions.mockResolvedValue(() => []);
MockGetVersions.mockResolvedValue([]);
mockGetStateUpgradeMessages.mockImplementation(() => []);
mockGetAppRoot.mockImplementation(() => "prefix/");
Object.defineProperty(window, "onbeforeunload", {
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/Workflow/Editor/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
import { library } from "@fortawesome/fontawesome-svg-core";
import { faArrowLeft, faArrowRight, faHistory } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { useMagicKeys, whenever } from "@vueuse/core";
import { whenever } from "@vueuse/core";
import { logicAnd, logicNot, logicOr } from "@vueuse/math";
import { Toast } from "composables/toast";
import { storeToRefs } from "pinia";
Expand All @@ -199,6 +199,7 @@ import Vue, { computed, nextTick, onUnmounted, ref, unref, watch } from "vue";
import { getUntypedWorkflowParameters } from "@/components/Workflow/Editor/modules/parameters";
import { ConfirmDialog } from "@/composables/confirmDialog";
import { useDatatypesMapper } from "@/composables/datatypesMapper";
import { useMagicKeys } from "@/composables/useMagicKeys";
import { useUid } from "@/composables/utils/uid";
import { provideScopedWorkflowStores } from "@/composables/workflowStores";
import { hide_modal } from "@/layout/modal";
Expand Down

0 comments on commit bc39701

Please sign in to comment.