From fb1006632f7d70d5426f3d760bfedac45bc50709 Mon Sep 17 00:00:00 2001 From: Kulbhushan Kaushik Date: Fri, 28 Oct 2022 10:41:57 -0400 Subject: [PATCH] commit --- .../site-sub-header/site-sub-header.spec.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); + }); });