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,
|
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
|
||||||
|
|
|
||||||
|
|
@ -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: {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue