forked from Yara724/api
feat(claims): require optional expert signatures and enrich PDF reports
This commit is contained in:
@@ -41,7 +41,7 @@ describe("Fanavaran depreciation age eligibility", () => {
|
||||
.mockResolvedValue(product);
|
||||
service.getFanavaranLookupRows = jest.fn().mockResolvedValue([]);
|
||||
service.buildCarBodyFanavaranExpertisePayload = jest.fn(
|
||||
async (input) => ({ payload: { DropAmount: input.priceDropTotal } }),
|
||||
async (input) => ({ payload: { DropAmount: input.priceDropTotal ?? 0 } }),
|
||||
);
|
||||
const claimCase = {
|
||||
_id: "claim",
|
||||
@@ -59,7 +59,7 @@ describe("Fanavaran depreciation age eligibility", () => {
|
||||
? "DropAmount"
|
||||
: "DropAmountAdditionsDeductions"
|
||||
],
|
||||
).toBe(age > 10 ? 0 : 999);
|
||||
).toBe(product === "car-body" || age > 10 ? 0 : 999);
|
||||
expect(claimCase.evaluation.priceDrop.total).toBe(999); // Historical data is preserved.
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user