fix ESG chassis inquiry payload

This commit is contained in:
SepehrYahyaee
2026-09-19 16:50:34 +03:30
parent b4c1d7bd5f
commit 4ef53f2cc9
8 changed files with 12 additions and 13 deletions

View File

@@ -191,7 +191,7 @@ describe("SandHubService inquiry mocks", () => {
const result = await service.getCarByChassisInquiry({
nationalCode: "0012345678",
chassis: "NAAR03HFFRDE07024",
chassisNo: "NAAR03HFFRDE07024",
});
expect(result.mapped.Error.Message).toBe(
@@ -242,7 +242,7 @@ describe("SandHubService inquiry mocks", () => {
service.getCarByChassisInquiry(
{
nationalCode: "1234567890",
chassis: "NAAR03HFFRDE07024",
chassisNo: "NAAR03HFFRDE07024",
},
{ enforceDeploymentClientMatch: true },
),
@@ -258,14 +258,14 @@ describe("SandHubService inquiry mocks", () => {
await service.getCarByChassisInquiry({
nationalCode: "0012345678",
chassis: "NAAR03HFFRDE07024",
chassisNo: "NAAR03HFFRDE07024",
});
expect(esg).toHaveBeenCalledWith(
expect.stringContaining("/inquiry/carByChassis"),
{
nationalCode: "0012345678",
chassis: "NAAR03HFFRDE07024",
chassisNo: "NAAR03HFFRDE07024",
},
"vinChassis",
undefined,