diff --git a/src/ux-components/alert/alert.spec.js b/src/ux-components/alert/alert.spec.js index 749a664b7..b329c9e4f 100644 --- a/src/ux-components/alert/alert.spec.js +++ b/src/ux-components/alert/alert.spec.js @@ -1,4 +1,4 @@ -import { shallowMount } from "@vue/test-utils"; +import { shallowMount } from "@vue/test-utils"; import { getMountOptions } from "@/helpers/unit-test-helper.js"; import alert from "./alert"; @@ -44,6 +44,19 @@ describe("alert.vue", () => { expect(wrapper.vm.alertCopy).toBe("testCopy"); }); + it("Should container a tag if the manualCopy contains a {routerLink: testName, testLink} placeholder", () =>{ + // Arrange & Act + const wrapper = shallowMount(alert, setupMocks({ + propsData: { + manualHeadline: 'testHeader', + manualCopy: 'testCopy with a {routerLink: testName, testLink} inside of it' + }, + stubs: ['router-link'], + })); + // Assert + expect(wrapper.find('router-link').exists()).toBe(true); + }); + it("Should call scrollIntoView() when the clientBoundingRect is not entirely in the viewport (out of view top)", () => { // Arrange var viewPortHeight = 200;