From 516f9680c8bd42a1d7fdde6e05404f783d3f803d Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 18 Aug 2022 15:24:23 +0200 Subject: [PATCH] remove test until vue-jest is fixed https://github.com/vuejs/vue-jest/pull/489 --- .../InstallationActions.test.js | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js diff --git a/client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js b/client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js deleted file mode 100644 index 754c5013e50..00000000000 --- a/client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js +++ /dev/null @@ -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(); - }); -});