boo for double quotes
This commit is contained in:
parent
757bb36cea
commit
ad5ced16d7
1 changed files with 10 additions and 4 deletions
|
|
@ -44,11 +44,17 @@ jest.mock(
|
||||||
jest.spyOn(baseMixin.methods, "getZipCodeData").mockImplementation((serviceZipCode) => {
|
jest.spyOn(baseMixin.methods, "getZipCodeData").mockImplementation((serviceZipCode) => {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
let mockContainsMilitaryBase = false;
|
let mockContainsMilitaryBase = false;
|
||||||
if (serviceZipCode === 45433 || serviceZipCode === '45433') {
|
if (serviceZipCode === 45433 || serviceZipCode === "45433") {
|
||||||
mockContainsMilitaryBase = true;
|
mockContainsMilitaryBase = true;
|
||||||
}
|
}
|
||||||
resolve({ containsMilitaryBase: mockContainsMilitaryBase, isValid: true, isServiceable: true, state: "OH", zipCodeCtu: "01820" });
|
resolve({
|
||||||
});
|
containsMilitaryBase: mockContainsMilitaryBase,
|
||||||
|
isValid: true,
|
||||||
|
isServiceable: true,
|
||||||
|
state: "OH",
|
||||||
|
zipCodeCtu: "01820",
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
jest.mock("@/store", () => ({
|
jest.mock("@/store", () => ({
|
||||||
|
|
@ -314,7 +320,7 @@ describe("service-location.vue", () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
wrapper.setData({zipCode: newServiceZipCodeQuestion.zipCode});
|
wrapper.setData({ zipCode: newServiceZipCodeQuestion.zipCode });
|
||||||
wrapper.vm.$nextTick(() => {
|
wrapper.vm.$nextTick(() => {
|
||||||
expect(wrapper.vm.zipContainsMilitaryBase).toBe(true);
|
expect(wrapper.vm.zipContainsMilitaryBase).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue