Fix damaged vehicle identity across claim panels and price estimates

This commit is contained in:
SepehrYahyaee
2026-10-06 14:20:15 +03:30
parent b11128c638
commit 4564798db1
10 changed files with 375 additions and 199 deletions
+4
View File
@@ -62,6 +62,8 @@ describe("SandHubService inquiry mocks", () => {
});
expect(isMappedPolicyCurrent(result.mapped)).toBe(true);
expect(result.mapped.MapTypNam).toBe(result.mapped.SystemField);
expect(result.mapped.TypeField).toBeNull();
});
it("returns car-body mock without HTTP when carBodyPlate is off", async () => {
@@ -78,6 +80,8 @@ describe("SandHubService inquiry mocks", () => {
expect(result.mapped.policyNumber).toBe("1405/1143-70591/220/1/0");
expect(result.mapped.CompanyName).toBe("بیمه پارسیان");
expect(result.mapped.companyId).toBe(8);
expect(result.mapped.MapTypNam).toBe(result.raw.data.vehicleSystemTitle);
expect(result.mapped.MapTypNam).not.toBe(result.raw.data.vehicleGroupTitle);
expect(result.mapped.insurerNationalCode).toBe("1234567890");
expect(result.mapped.platePartOne).toBe(16);
expect(result.mapped.platePartThree).toBe(498);