fix tests page after merge
This commit is contained in:
parent
532a017064
commit
aa25092cc9
1 changed files with 10 additions and 0 deletions
|
|
@ -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", () => ({
|
jest.mock("@/store", () => ({
|
||||||
commit: jest.fn(),
|
commit: jest.fn(),
|
||||||
dispatch: jest.fn(),
|
dispatch: jest.fn(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue