From eb87accfb71dcb4151054e297d150903ceb9fa36 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Mon, 13 Feb 2023 15:06:18 -0500 Subject: [PATCH] Moved 'useForm' into modal component --- src/digital-components/modal/modal.spec.js | 4 ++++ src/digital-components/modal/modal.vue | 4 +++- .../mobile-location-modal-questions.vue | 7 ------- .../service-zip-modal-question.vue | 7 ------- 4 files changed, 7 insertions(+), 15 deletions(-) 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 @@