diff --git a/src/common-components/funnel-footer/funnel-footer.spec.js b/src/common-components/funnel-footer/funnel-footer.spec.js index 791cd0961..a4c127a3e 100644 --- a/src/common-components/funnel-footer/funnel-footer.spec.js +++ b/src/common-components/funnel-footer/funnel-footer.spec.js @@ -14,18 +14,17 @@ describe("funnel-footer.vue", () => { remove: jest.fn() }, }; + global.document.getElementById = jest.fn().mockImplementation(()=> { return r; }); const wrapper = mount(funnelFooter, { - propsData: { - footer: true - }, }); // Assert const link = wrapper.find("a"); + console.log(wrapper.html()); // Expect expect(link.attributes('class')).toContain("footer-link"); diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue index 302936c47..37879d2cf 100644 --- a/src/common-components/funnel-footer/funnel-footer.vue +++ b/src/common-components/funnel-footer/funnel-footer.vue @@ -1,104 +1,82 @@