diff --git a/src/layouts/service-location/service-location.spec.js b/src/layouts/service-location/service-location.spec.js index fbe7aa448..9870e1f0d 100644 --- a/src/layouts/service-location/service-location.spec.js +++ b/src/layouts/service-location/service-location.spec.js @@ -41,6 +41,16 @@ jest.mock( }) ); +jest.spyOn(baseMixin.methods, "getZipCodeData").mockImplementation((serviceZipCode) => { + let moqContainsMilitaryBase = false; + if (serviceZipCode === 45433) { + moqContainsMilitaryBase = true; + } + return new Promise((resolve) => { + resolve({ containsMilitaryBase: moqContainsMilitaryBase, isValid: true, isServiceable: true, state: "OH", zipCodeCtu: "01820" }); + }); +}); + jest.mock("@/store", () => ({ commit: jest.fn(), dispatch: jest.fn(),