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