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 @@ - - - - -