diff --git a/src/common-components/text-block/text-block.vue b/src/common-components/text-block/text-block.vue index 8ca33b0a3..7c7557b25 100644 --- a/src/common-components/text-block/text-block.vue +++ b/src/common-components/text-block/text-block.vue @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/src/layouts/estimate/estimate.spec.js b/src/layouts/estimate/estimate.spec.js index a24bc22b7..1843670ec 100644 --- a/src/layouts/estimate/estimate.spec.js +++ b/src/layouts/estimate/estimate.spec.js @@ -146,6 +146,20 @@ describe("estimate.vue", () => { }); + test("Changing zip should reset alert", async () => { + //Arrange + const { wrapper } = setupMocks({}); + + //Act + wrapper.vm.displayNonServiceableZipAlert = "true"; + wrapper.vm.serviceZipCode = "43015"; + + await wrapper.vm.$nextTick(); + + //Assert + expect(wrapper.vm.displayNonServiceableZipAlert).toEqual(false); + }); + }); function setupMocks({ diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue index aae192291..e003348bd 100644 --- a/src/layouts/estimate/estimate.vue +++ b/src/layouts/estimate/estimate.vue @@ -6,26 +6,86 @@ v-slot="{ meta }" >