forked from Yara724/api
car body implemented
This commit is contained in:
@@ -5,9 +5,16 @@ import {
|
||||
pickHullVehicleIdentity,
|
||||
toFanavaranHullExpertiseDmgSection,
|
||||
toFanavaranHullExpertisePayload,
|
||||
vehicleCurrentValueFromHullPolicyRecord,
|
||||
} from "./fanavaran-hull-expertise";
|
||||
|
||||
describe("fanavaran hull expertise", () => {
|
||||
it("reads VehicleCurrentValue from hull policy VehicleValue", () => {
|
||||
expect(
|
||||
vehicleCurrentValueFromHullPolicyRecord({ VehicleValue: 11000000000 }),
|
||||
).toBe(11000000000);
|
||||
});
|
||||
|
||||
it("maps car-body inquiry identity onto GEN.06 vehicle fields", () => {
|
||||
const vehicle = pickHullVehicleIdentity({
|
||||
parties: [
|
||||
@@ -71,6 +78,9 @@ describe("fanavaran hull expertise", () => {
|
||||
desc: "bumper",
|
||||
wasteValue: 0,
|
||||
amount: 3000,
|
||||
dmgKindId: 5485,
|
||||
dmgCostKindId: 1,
|
||||
vehicleHullAccessoryId: 3043330,
|
||||
}),
|
||||
],
|
||||
});
|
||||
@@ -89,10 +99,10 @@ describe("fanavaran hull expertise", () => {
|
||||
Desc: "bumper",
|
||||
WasteValue: 0,
|
||||
AccessoryKindId: 9,
|
||||
DmgKindId: null,
|
||||
VehicleHullAccessoryId: null,
|
||||
DmgKindId: 5485,
|
||||
VehicleHullAccessoryId: 3043330,
|
||||
DmgSectionCosts: [
|
||||
{ Caption: "bumper", Amount: 3000, DmgCostKindId: null },
|
||||
{ Caption: "bumper", Amount: 3000, DmgCostKindId: 1 },
|
||||
],
|
||||
},
|
||||
]);
|
||||
@@ -122,12 +132,18 @@ describe("fanavaran hull expertise", () => {
|
||||
desc: "سپر جلو",
|
||||
wasteValue: 0,
|
||||
amount: 11000000,
|
||||
dmgKindId: 5485,
|
||||
dmgCostKindId: 1,
|
||||
vehicleHullAccessoryId: 3043330,
|
||||
}),
|
||||
toFanavaranHullExpertiseDmgSection({
|
||||
partId: 11,
|
||||
desc: "آينه سمت راننده",
|
||||
wasteValue: 0,
|
||||
amount: 5000000,
|
||||
dmgKindId: 5485,
|
||||
dmgCostKindId: 1,
|
||||
vehicleHullAccessoryId: 3043330,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user