mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
remove test until vue-jest is fixed
https://github.com/vuejs/vue-jest/pull/489
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
import { mount, createLocalVue } from "@vue/test-utils";
|
||||
import InstallationActions from "./InstallationActions";
|
||||
import { localizationPlugin } from "components/plugins";
|
||||
|
||||
const localVue = createLocalVue();
|
||||
localVue.use(localizationPlugin);
|
||||
|
||||
describe("InstallationActions", () => {
|
||||
it("test installed repository revision", () => {
|
||||
const wrapper = mount(InstallationActions, {
|
||||
propsData: {
|
||||
installed: true,
|
||||
status: "Installed",
|
||||
},
|
||||
localVue,
|
||||
});
|
||||
const $el = wrapper.find("button");
|
||||
expect($el.classes()).toEqual(expect.arrayContaining(["btn-danger"]));
|
||||
$el.trigger("click");
|
||||
expect(wrapper.emitted().onUninstall).toBeDefined();
|
||||
});
|
||||
|
||||
it("test uninstalled repository revision", () => {
|
||||
const wrapper = mount(InstallationActions, {
|
||||
propsData: {
|
||||
installed: false,
|
||||
status: "Uninstalled",
|
||||
},
|
||||
localVue,
|
||||
});
|
||||
const $el = wrapper.find("button");
|
||||
expect($el.classes()).toEqual(expect.arrayContaining(["btn-primary"]));
|
||||
$el.trigger("click");
|
||||
expect(wrapper.emitted().onInstall).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user