forked from Yara724/api
fixed branch being mandatory
This commit is contained in:
@@ -19,6 +19,41 @@ describe("fanavaranClaimReferences", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("exposes the persisted Fanavaran reference codes to expert detail APIs", () => {
|
||||
expect(
|
||||
fanavaranClaimReferences({
|
||||
status: ClaimCaseStatus.COMPLETED,
|
||||
claimId: 100,
|
||||
claimNo: 101,
|
||||
dmgCaseId: 102,
|
||||
expertiseId: 103,
|
||||
fanavaranSync: {
|
||||
baseClaim: { policyId: 104 },
|
||||
damageCase: {
|
||||
driverId: 105,
|
||||
vehicleKindId: 106,
|
||||
plaqueKindId: 107,
|
||||
plaqueSampleId: 108,
|
||||
accidentVehicleUsedId: 109,
|
||||
insuranceCorpId: 110,
|
||||
},
|
||||
},
|
||||
}),
|
||||
).toEqual({
|
||||
claimId: 100,
|
||||
claimNo: 101,
|
||||
dmgCaseId: 102,
|
||||
expertiseId: 103,
|
||||
policyId: 104,
|
||||
driverId: 105,
|
||||
vehicleKindId: 106,
|
||||
plaqueKindId: 107,
|
||||
plaqueSampleId: 108,
|
||||
accidentVehicleUsedId: 109,
|
||||
insuranceCorpId: 110,
|
||||
});
|
||||
});
|
||||
|
||||
it("omits missing ids", () => {
|
||||
expect(
|
||||
fanavaranClaimReferences({
|
||||
|
||||
Reference in New Issue
Block a user