diff --git a/src/common-components/site-sub-header/site-sub-header.spec.js b/src/common-components/site-sub-header/site-sub-header.spec.js index fd35c00c..d38fa323 100644 --- a/src/common-components/site-sub-header/site-sub-header.spec.js +++ b/src/common-components/site-sub-header/site-sub-header.spec.js @@ -3,14 +3,14 @@ import { shallowMount } from "@vue/test-utils"; describe("site sub header", () => { - const subHeaderText = "

let's fix your glass

"; + const subHeaderText = "let's fix your glass"; const mockMixin = { methods: { getCmsContent: jest.fn().mockImplementation(()=> { return subHeaderText; }) } - } + }; it("should contain the cms content", () => { const wrapper = shallowMount(siteSubHeader, { @@ -18,10 +18,9 @@ describe("site sub header", () => { }); wrapper.getCmsContent = jest.fn(); - const actual = wrapper.find("p"); - - expect(actual.html()).toBe(subHeaderText); - }) + const actual = wrapper.find("span"); + expect(actual.html()).toContain(subHeaderText); + }); });