diff --git a/package-lock.json b/package-lock.json index a4cfe0a1..93875c8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3571,9 +3571,9 @@ "dev": true }, "bootstrap": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.1.tgz", - "integrity": "sha512-UQi3v2NpVPEi1n35dmRRzBJFlgvWHYwyem6yHhuT6afYF+sziEt46McRbT//kVXZ7b1YUYEVGdXEH74Nx3xzGA==" + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.2.tgz", + "integrity": "sha512-dEtzMTV71n6Fhmbg4fYJzQsw1N29hJKO1js5ackCgIpDcGid2ETMGC6zwSYw09v05Y+oRdQ9loC54zB1La3hHQ==" }, "brace-expansion": { "version": "1.1.11", diff --git a/package.json b/package.json index 08f73fe1..9b586f69 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "@popperjs/core": "^2.10.2", "axios": "^0.27.2", - "bootstrap": "^5.1.1", + "bootstrap": "^5.2.2", "jest-junit": "^13.0.0", "maska": "^1.5.0", "pinia": "^2.0.22", 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); + }); }); diff --git a/src/common-components/site-sub-header/site-sub-header.vue b/src/common-components/site-sub-header/site-sub-header.vue index a48b9f19..22064035 100644 --- a/src/common-components/site-sub-header/site-sub-header.vue +++ b/src/common-components/site-sub-header/site-sub-header.vue @@ -1,8 +1,14 @@