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
|
// Assert
|
||||||
expect(wrapper.vm.selectedAppointmentType).toStrictEqual(null);
|
expect(wrapper.vm.selectedAppointmentType).toStrictEqual(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("displays military zip message when zip is updated", () => {
|
test("displays military zip message when zip is updated", () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -461,7 +461,7 @@ describe("service-location.vue", () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.serviceZipCodeQuestion).toStrictEqual(newServiceZipCodeInfo);
|
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", () => {
|
test("resets appointment type selection when service zip code is updated by mobile location modal when Mobile is not selected", () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
|
|
@ -485,7 +485,7 @@ describe("service-location.vue", () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.selectedAppointmentType).toStrictEqual(null);
|
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", () => {
|
test("does not reset appointment type selection when service zip code is updated by mobile location modal when Mobile is selected", () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
|
|
@ -515,7 +515,7 @@ describe("service-location.vue", () => {
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.selectedAppointmentType).toStrictEqual(appointmentTypeMobile);
|
expect(wrapper.vm.selectedAppointmentType).toStrictEqual(appointmentTypeMobile);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("serviceability logic", () => {
|
describe("serviceability logic", () => {
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,10 @@ export default {
|
||||||
|
|
||||||
this.mobileLocationValidationField = "isValid";
|
this.mobileLocationValidationField = "isValid";
|
||||||
|
|
||||||
if ((newValue.zipCode !== this.zipCode) && !this.selectedAppointmentType == "Mobile") {
|
if (
|
||||||
|
newValue.zipCode !== this.zipCode &&
|
||||||
|
!this.selectedAppointmentType == "Mobile"
|
||||||
|
) {
|
||||||
this.selectedAppointmentType = null;
|
this.selectedAppointmentType = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue