diff --git a/src/layouts/service-location/service-location.spec.js b/src/layouts/service-location/service-location.spec.js index 1cea19cb9..28a8ca473 100644 --- a/src/layouts/service-location/service-location.spec.js +++ b/src/layouts/service-location/service-location.spec.js @@ -345,7 +345,7 @@ describe("service-location.vue", () => { // Assert expect(wrapper.vm.selectedAppointmentType).toStrictEqual(null); - }); + }); test("displays military zip message when zip is updated", () => { // Arrange @@ -461,7 +461,7 @@ describe("service-location.vue", () => { // Assert expect(wrapper.vm.serviceZipCodeQuestion).toStrictEqual(newServiceZipCodeInfo); }); - + test("resets appointment type selection when service zip code is updated by mobile location modal when Mobile is not selected", () => { // Arrange const { wrapper } = setupMocks({}); @@ -485,7 +485,7 @@ describe("service-location.vue", () => { // Assert expect(wrapper.vm.selectedAppointmentType).toStrictEqual(null); }); - + test("does not reset appointment type selection when service zip code is updated by mobile location modal when Mobile is selected", () => { // Arrange const { wrapper } = setupMocks({}); @@ -515,7 +515,7 @@ describe("service-location.vue", () => { // Assert expect(wrapper.vm.selectedAppointmentType).toStrictEqual(appointmentTypeMobile); - }); + }); }); describe("serviceability logic", () => { diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 49572dbda..ac1334fcb 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -200,7 +200,10 @@ export default { this.mobileLocationValidationField = "isValid"; - if ((newValue.zipCode !== this.zipCode) && !this.selectedAppointmentType == "Mobile") { + if ( + newValue.zipCode !== this.zipCode && + !this.selectedAppointmentType == "Mobile" + ) { this.selectedAppointmentType = null; } },