Fix broken test

This commit is contained in:
CarlNation 2022-10-25 16:03:38 -04:00
parent dbaad5c0f0
commit 3a674d64dc
2 changed files with 23 additions and 4 deletions

View file

@ -834,9 +834,9 @@ export const actions = {
emailAddress: order.customer.emailAddress, emailAddress: order.customer.emailAddress,
}, },
damage: { damage: {
numberOfChips: damage.numberOfChips, numberOfChips: order.damage.numberOfChips,
glassToReplace: damage.glassToReplace, glassToReplace: order.damage.glassToReplace,
isRepair: damage.isRepair, isRepair: order.damage.isRepair,
partQuestionAnswers: order.damage.partQuestionAnswers, partQuestionAnswers: order.damage.partQuestionAnswers,
moldingQuestionAnswers: order.damage.moldingQuestionAnswers, moldingQuestionAnswers: order.damage.moldingQuestionAnswers,
capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers

View file

@ -603,7 +603,14 @@ describe("Actions", () => {
vehicle: { vehicle: {
registration: {} registration: {}
}, },
damage: {}, order:{
damage: {
numberOfChips: "2",
partQuestionAnswers: {},
moldingQuestionAnswers: {},
capabilityQuestionAnswers: {}
}
},
applicationUser: { applicationUser: {
lastPageVisited: "test-page", lastPageVisited: "test-page",
crmCustomerId: "xxx-xxx-xxx", crmCustomerId: "xxx-xxx-xxx",
@ -612,6 +619,18 @@ describe("Actions", () => {
}; };
context.state = { context.state = {
order: { order: {
damage: {
numberOfChips: "2",
partQuestionAnswers: {},
moldingQuestionAnswers: {},
capabilityQuestionAnswers: {}
},
payment: {
insuranceCoverage: {
isVerified: false
},
isInsurance: false
},
serviceLocation: {}, serviceLocation: {},
customer: {}, customer: {},
lineItems: {} lineItems: {}