Updated test case data
This commit is contained in:
parent
97eaf64232
commit
1fb34d29b1
1 changed files with 25 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue