diff --git a/src/digital-components/modal/modal.spec.js b/src/digital-components/modal/modal.spec.js index 5feaf0216..963167829 100644 --- a/src/digital-components/modal/modal.spec.js +++ b/src/digital-components/modal/modal.spec.js @@ -1,10 +1,14 @@ import { shallowMount } from "@vue/test-utils"; import Modal from "./modal"; +import crypto from "crypto"; +import { useForm } from "vee-validate"; const modalId = "modal-one"; const footerButtonText = "Sample footer text here."; const headerText = "Sample header text here."; +global.crypto = crypto; + describe("modal.vue", () => { it("Should display footer button text when footerButtonText is defined", async () => { const wrapper = shallowMount(Modal, { diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index 1bf7c3fce..e0be2e9c0 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -43,7 +43,7 @@