remove test until vue-jest is fixed

https://github.com/vuejs/vue-jest/pull/489
This commit is contained in:
Laila Los
2022-08-18 15:24:23 +02:00
parent 48b2e2a59f
commit 516f9680c8
@@ -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();
});
});