diff --git a/src/layouts/service-location/service-location.spec.js b/src/layouts/service-location/service-location.spec.js index 515ae7e64..2b4e0d221 100644 --- a/src/layouts/service-location/service-location.spec.js +++ b/src/layouts/service-location/service-location.spec.js @@ -81,16 +81,6 @@ jest.mock( }) ); -jest.mock( - "@/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue", - () => ({ - isMobileAddressComplete: jest.fn(() => { - return true; - }), - openModal: jest.fn(), - }) -); - jest.spyOn(baseMixin.methods, "getZipCodeData").mockImplementation((serviceZipCode) => { return new Promise((resolve) => { let mockContainsMilitaryBase = false; @@ -1443,5 +1433,7 @@ function setupMocks({ mountOptionsMockData = {} }) { const mountOptions = getMountOptions(mountOptionsMockData); const wrapper = shallowMount(serviceLocation, mountOptions); wrapper.vm.setCmsContent = baseMixin.methods.setCmsContent; + wrapper.vm.$refs.mobileLocationQuestions.isMobileAddressComplete = jest.fn(); + wrapper.vm.$refs.mobileLocationQuestions.openModal = jest.fn(); return { wrapper, apiPromise }; }