Prettified
This commit is contained in:
parent
40bc9b9a75
commit
b06ee56d27
2 changed files with 8 additions and 5 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue