Updated test case data

This commit is contained in:
Chloe Herd 2023-02-17 15:53:06 -05:00
parent 97eaf64232
commit 1fb34d29b1

View file

@ -24,11 +24,20 @@ jest.mock("@/store", () => ({
dispatch: jest.fn(),
getters: {
lineItems: {
supportingItems: [],
supportingItems: [
{
description: null,
kitPrice: 0,
laborAmount: 0,
partNumber: "SUPPLIES-REPAIR",
partType: "REPAIR FEE",
sellingPrice: 7.99
}
],
},
order: {
serviceLocation: {
zipCode: "00000",
zipCode: "43235",
},
},
payment: {
@ -40,18 +49,27 @@ jest.mock("@/store", () => ({
beforeEach(() => {
store.getters = {
lineItems: {
supportingItems: [],
supportingItems: [
{
description: null,
kitPrice: 0,
laborAmount: 0,
partNumber: "SUPPLIES-REPAIR",
partType: "REPAIR FEE",
sellingPrice: 7.99
}
],
},
order: {
serviceLocation: {
zipCode: "00000",
zipCode: "43235",
},
},
payment: {
isInsurance: false,
},
}
})
};
});
describe("service-location.vue", () => {
describe("arePagePrerequisitesValid", () => {
@ -70,7 +88,7 @@ describe("service-location.vue", () => {
payment: {
isInsurance: null,
},
}
};
serviceLocation.beforeRouteEnter.call(
wrapper.vm,