Prettified

This commit is contained in:
Leah Schumann 2023-03-31 13:41:46 -04:00
parent 40bc9b9a75
commit b06ee56d27
2 changed files with 8 additions and 5 deletions

View file

@ -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", () => {

View file

@ -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;
}
},