Fix broken test
This commit is contained in:
parent
dbaad5c0f0
commit
3a674d64dc
2 changed files with 23 additions and 4 deletions
|
|
@ -834,9 +834,9 @@ export const actions = {
|
|||
emailAddress: order.customer.emailAddress,
|
||||
},
|
||||
damage: {
|
||||
numberOfChips: damage.numberOfChips,
|
||||
glassToReplace: damage.glassToReplace,
|
||||
isRepair: damage.isRepair,
|
||||
numberOfChips: order.damage.numberOfChips,
|
||||
glassToReplace: order.damage.glassToReplace,
|
||||
isRepair: order.damage.isRepair,
|
||||
partQuestionAnswers: order.damage.partQuestionAnswers,
|
||||
moldingQuestionAnswers: order.damage.moldingQuestionAnswers,
|
||||
capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers
|
||||
|
|
|
|||
|
|
@ -603,7 +603,14 @@ describe("Actions", () => {
|
|||
vehicle: {
|
||||
registration: {}
|
||||
},
|
||||
damage: {},
|
||||
order:{
|
||||
damage: {
|
||||
numberOfChips: "2",
|
||||
partQuestionAnswers: {},
|
||||
moldingQuestionAnswers: {},
|
||||
capabilityQuestionAnswers: {}
|
||||
}
|
||||
},
|
||||
applicationUser: {
|
||||
lastPageVisited: "test-page",
|
||||
crmCustomerId: "xxx-xxx-xxx",
|
||||
|
|
@ -612,6 +619,18 @@ describe("Actions", () => {
|
|||
};
|
||||
context.state = {
|
||||
order: {
|
||||
damage: {
|
||||
numberOfChips: "2",
|
||||
partQuestionAnswers: {},
|
||||
moldingQuestionAnswers: {},
|
||||
capabilityQuestionAnswers: {}
|
||||
},
|
||||
payment: {
|
||||
insuranceCoverage: {
|
||||
isVerified: false
|
||||
},
|
||||
isInsurance: false
|
||||
},
|
||||
serviceLocation: {},
|
||||
customer: {},
|
||||
lineItems: {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue