Merge pull request #3284 from Safelite/nation/CASH-3036
Nation/cash 3036
This commit is contained in:
commit
6fe17f6810
2 changed files with 6 additions and 3 deletions
|
|
@ -87,12 +87,12 @@ describe("policy-info.vue", () => {
|
||||||
expect(wrapper.vm.displayClaimNumber).toBe(true);
|
expect(wrapper.vm.displayClaimNumber).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("is false when only unrelated flags (e.g. otherResponsibleParty, thirdPartyVehicle, injuries) are checked", async () => {
|
test("is false when only unrelated flags (e.g. thirdPartyVehicle, injuries) are checked", async () => {
|
||||||
const { wrapper } = setupMocks();
|
const { wrapper } = setupMocks();
|
||||||
wrapper.vm.morePolicyQuestions = {
|
wrapper.vm.morePolicyQuestions = {
|
||||||
additionalDamage: false,
|
additionalDamage: false,
|
||||||
rental: false,
|
rental: false,
|
||||||
otherResponsibleParty: true,
|
otherResponsibleParty: false,
|
||||||
thirdPartyVehicle: true,
|
thirdPartyVehicle: true,
|
||||||
injuries: true,
|
injuries: true,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -496,9 +496,12 @@ export default {
|
||||||
const additionalDamageFlag =
|
const additionalDamageFlag =
|
||||||
morePolicyQuestionAnswerToFlag[morePolicyQuestionAnswers.ADDITIONAL_DAMAGE];
|
morePolicyQuestionAnswerToFlag[morePolicyQuestionAnswers.ADDITIONAL_DAMAGE];
|
||||||
const rentalFlag = morePolicyQuestionAnswerToFlag[morePolicyQuestionAnswers.RENTAL];
|
const rentalFlag = morePolicyQuestionAnswerToFlag[morePolicyQuestionAnswers.RENTAL];
|
||||||
|
const otherResponsibleParty =
|
||||||
|
morePolicyQuestionAnswerToFlag[morePolicyQuestionAnswers.OTHER_RESPONSIBLE_PARTY];
|
||||||
return Boolean(
|
return Boolean(
|
||||||
this.morePolicyQuestions?.[additionalDamageFlag] ||
|
this.morePolicyQuestions?.[additionalDamageFlag] ||
|
||||||
this.morePolicyQuestions?.[rentalFlag]
|
this.morePolicyQuestions?.[rentalFlag] ||
|
||||||
|
this.morePolicyQuestions?.[otherResponsibleParty]
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue