diff --git a/src/fmg-components/funnel-footer/funnel-footer.spec.js b/src/fmg-components/funnel-footer/funnel-footer.spec.js deleted file mode 100644 index 6360fb34a..000000000 --- a/src/fmg-components/funnel-footer/funnel-footer.spec.js +++ /dev/null @@ -1,59 +0,0 @@ -import { mount } from "@vue/test-utils"; -import funnelFooter from "./funnel-footer"; - -describe("funnel-footer.vue", () => { - test("Should emit ForwardClicked on button click", async () => { - // Act - const wrapper = mount(funnelFooter, { - mixins: [mockMixin], - }); - wrapper.vm.buttonClick(); - // Assert - expect(wrapper.emitted()["ForwardClicked"][0]).toHaveBeenCalled; - }); - - test("Should emit BackClicked on link click", async () => { - // Act - const wrapper = mount(funnelFooter, { - mixins: [mockMixin], - }); - wrapper.vm.linkClick(); - // Assert - expect(wrapper.emitted()["BackClicked"][0]).toHaveBeenCalled; - }); - - test("Should change button text when update button text is called", async () => { - // Act - const wrapper = mount(funnelFooter, { - mixins: [mockMixin], - }); - wrapper.vm.updateButtonText("newText"); - - // Assert - expect(wrapper.componentVM.customButtontext).toBe("newText"); - }); - - test("should run removeLoader fn on buttonMain and return false for onkeydown fn", async () => { - // Arrange - const wrapper = mount(funnelFooter, { - mixins: [mockMixin], - }); - - // Act - wrapper.vm.$refs.buttonMain.removeLoader = jest.fn(); - wrapper.vm.removeLoader(); - const spy = jest.spyOn(document, "onkeydown"); - document.onkeydown(); - - // Assert - expect(wrapper.vm.$refs.buttonMain.removeLoader).toHaveBeenCalled(); - expect(spy).toReturnWith(true); - }); -}); - -const mockMixin = { - methods: { - getCmsContent: jest.fn(), - getFooterInfoBoxHeight: jest.fn(() => 80), - }, -}; diff --git a/src/fmg-components/funnel-footer/funnel-footer.vue b/src/fmg-components/funnel-footer/funnel-footer.vue deleted file mode 100644 index 448f15319..000000000 --- a/src/fmg-components/funnel-footer/funnel-footer.vue +++ /dev/null @@ -1,124 +0,0 @@ - - - - -