From aa25092cc9a648b79969a9839a8708bd0c9f6916 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 9 Mar 2023 13:43:02 -0500 Subject: [PATCH] fix tests page after merge --- src/layouts/service-location/service-location.spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(),