Moved 'useForm' into modal component
This commit is contained in:
commit
ac99ddfbb4
3 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,6 @@
|
|||
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.";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
import { mount } from "@vue/test-utils";
|
||||
import contentGroupModal from "./content-group-modal";
|
||||
import crypto from "crypto";
|
||||
|
||||
global.crypto = crypto;
|
||||
|
||||
describe("content-group-modal.vue", () => {
|
||||
it("Should display header text when HeaderText is defined in the CMS", async () => {
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ export default {
|
|||
},
|
||||
|
||||
onModalOpened() {
|
||||
this.serviceZipCodeInput = this.serviceZipModel.zipCode;
|
||||
this.focusOnZipInput();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue