mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Drop test for delegation -- this is part of the component (for now).
This commit is contained in:
@@ -16,7 +16,7 @@ jest.mock("app");
|
||||
import { getDatatypesMapper } from "components/Datatypes/factory";
|
||||
import { testDatatypesMapper } from "components/Datatypes/test_fixtures";
|
||||
import { getVersions, loadWorkflow } from "./modules/services";
|
||||
import { getStateUpgradeMessages, saveAs } from "./modules/utilities";
|
||||
import { getStateUpgradeMessages } from "./modules/utilities";
|
||||
import { getAppRoot } from "onload/loadConfig";
|
||||
import WorkflowCanvas from "./modules/canvas";
|
||||
|
||||
@@ -116,13 +116,6 @@ describe("Index", () => {
|
||||
expect(wrapper.vm.hasChanges).toBeTruthy();
|
||||
});
|
||||
|
||||
it("delegates to a module onSaveAs", async () => {
|
||||
mountAndWaitForCreated();
|
||||
saveAs.mockReturnThis();
|
||||
wrapper.vm.onSaveAs();
|
||||
expect(saveAs).toBeCalled();
|
||||
});
|
||||
|
||||
it("prevents navigation only if hasChanges", async () => {
|
||||
mountAndWaitForCreated();
|
||||
expect(window.onbeforeunload()).toBeFalsy();
|
||||
|
||||
Reference in New Issue
Block a user