fix tests page after merge

This commit is contained in:
Bill Richardson 2023-03-09 13:43:02 -05:00
parent 532a017064
commit aa25092cc9

View file

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