forked from Yara724/api
fixed default values
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
collectPartyVinCandidates,
|
||||
fanavaranIdOrConfigDefault,
|
||||
filterPoliciesByLine,
|
||||
insuranceLineLabel,
|
||||
parseLastCarPolicyInput,
|
||||
@@ -172,6 +173,12 @@ describe("fanavaran last car policy", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("uses tenant config default when the API id is missing", () => {
|
||||
expect(fanavaranIdOrConfigDefault(15, 8)).toBe(15);
|
||||
expect(fanavaranIdOrConfigDefault(null, 8)).toBe(8);
|
||||
expect(fanavaranIdOrConfigDefault(0, 10)).toBe(10);
|
||||
});
|
||||
|
||||
it("matches VIN against ChassisNo when VIN is empty", () => {
|
||||
expect(
|
||||
vehicleMatchesCar(
|
||||
|
||||
Reference in New Issue
Block a user