From b7bb66c88e34938fd7449f64b38fbddf4e805e50 Mon Sep 17 00:00:00 2001 From: bmauger Date: Wed, 26 Jan 2022 09:56:54 -0500 Subject: [PATCH] Remove button-primary and button-secondary components. --- .../button-primary/button-primary.spec.js | 92 ------------------- .../button-primary/button-primary.vue | 76 --------------- .../button-secondary/button-secondary.spec.js | 92 ------------------- .../button-secondary/button-secondary.vue | 75 --------------- 4 files changed, 335 deletions(-) delete mode 100644 src/ux-components/button-primary/button-primary.spec.js delete mode 100644 src/ux-components/button-primary/button-primary.vue delete mode 100644 src/ux-components/button-secondary/button-secondary.spec.js delete mode 100644 src/ux-components/button-secondary/button-secondary.vue diff --git a/src/ux-components/button-primary/button-primary.spec.js b/src/ux-components/button-primary/button-primary.spec.js deleted file mode 100644 index 39f64111c..000000000 --- a/src/ux-components/button-primary/button-primary.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -import { shallowMount } from "@vue/test-utils"; -import buttonPrimary from "./button-primary"; -import { nextTick } from "vue"; - -describe("buttonPrimary.vue", () => { - - it("Should return aria-disabled state", async () => { - // Act - const wrapper = shallowMount(buttonPrimary, { - propsData: { - isDisabled: true - }, - }); - - // Assert - const button = wrapper.find("button"); - - // Expect - expect(button.attributes()["aria-disabled"]).toEqual("true"); - - }); - - it("Should return loader color", async () => { - // Act - const wrapper = shallowMount(buttonPrimary, { - propsData: { - loaderColor: "blue", - loaderEnabled: true - }, - }); - - // Assert - - const label = wrapper.find("label"); - - wrapper.vm.displayComponent(); - - await nextTick(); - - const loader = wrapper.find("loader-stub"); - - expect(loader.attributes('class')).toContain("blue"); - - }); - - it("Should return loader position", async () => { - // Act - const wrapper = shallowMount(buttonPrimary, { - propsData: { - loaderPosition: "right", - loaderEnabled: true - }, - }); - - // Assert - - const label = wrapper.find("label"); - - wrapper.vm.displayComponent(); - - await nextTick(); - - const loader = wrapper.find("loader-stub"); - - expect(loader.attributes('class')).toContain("right"); - - }); - - it("Should return loader size in rem", async () => { - // Act - const wrapper = shallowMount(buttonPrimary, { - propsData: { - sizeInRem: 1, - loaderEnabled: true - }, - }); - - // Assert - - const label = wrapper.find("label"); - - wrapper.vm.displayComponent(); - - await nextTick(); - - const loader = wrapper.find("loader-stub"); - - expect(loader.attributes('style')).toContain("1rem"); - - }); - -}); diff --git a/src/ux-components/button-primary/button-primary.vue b/src/ux-components/button-primary/button-primary.vue deleted file mode 100644 index 4b1003f32..000000000 --- a/src/ux-components/button-primary/button-primary.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - diff --git a/src/ux-components/button-secondary/button-secondary.spec.js b/src/ux-components/button-secondary/button-secondary.spec.js deleted file mode 100644 index b10134228..000000000 --- a/src/ux-components/button-secondary/button-secondary.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -import { shallowMount } from "@vue/test-utils"; -import buttonSecondary from "./button-secondary"; -import { nextTick } from "vue"; - -describe("buttonSecondary.vue", () => { - - it("Should return aria-disabled state", async () => { - // Act - const wrapper = shallowMount(buttonSecondary, { - propsData: { - isDisabled: true - }, - }); - - // Assert - const button = wrapper.find("button"); - - // Expect - expect(button.attributes()["aria-disabled"]).toEqual("true"); - - }); - - it("Should return loader color", async () => { - // Act - const wrapper = shallowMount(buttonSecondary, { - propsData: { - loaderColor: "blue", - loaderEnabled: true - }, - }); - - // Assert - - const label = wrapper.find("label"); - - wrapper.vm.displayComponent(); - - await nextTick(); - - const loader = wrapper.find("loader-stub"); - - expect(loader.attributes('class')).toContain("blue"); - - }); - - it("Should return loader position", async () => { - // Act - const wrapper = shallowMount(buttonSecondary, { - propsData: { - loaderPosition: "right", - loaderEnabled: true - }, - }); - - // Assert - - const label = wrapper.find("label"); - - wrapper.vm.displayComponent(); - - await nextTick(); - - const loader = wrapper.find("loader-stub"); - - expect(loader.attributes('class')).toContain("right"); - - }); - - it("Should return loader size in rem", async () => { - // Act - const wrapper = shallowMount(buttonSecondary, { - propsData: { - sizeInRem: 1, - loaderEnabled: true - }, - }); - - // Assert - - const label = wrapper.find("label"); - - wrapper.vm.displayComponent(); - - await nextTick(); - - const loader = wrapper.find("loader-stub"); - - expect(loader.attributes('style')).toContain("1rem"); - - }); - -}); diff --git a/src/ux-components/button-secondary/button-secondary.vue b/src/ux-components/button-secondary/button-secondary.vue deleted file mode 100644 index c50876387..000000000 --- a/src/ux-components/button-secondary/button-secondary.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - -