forked from Yara724/api
fix ESG chassis inquiry payload
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user