forked from Yara724/api
fanavaran driver and owner id (GEN..44 defauts) - culprit type id dynamic
This commit is contained in:
@@ -49,6 +49,29 @@ describe("fanavaran other people (GEN.44)", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("defaults CityId=9131 and PersonKindId=46 when lookups miss", () => {
|
||||
const payload = buildFanavaranOtherPeoplePayload({
|
||||
nationalCode: "2002166323",
|
||||
birthday: { year: 1353, month: 2, day: 15 },
|
||||
name: "محمدعلي",
|
||||
lastName: "موسوي",
|
||||
fatherName: "حسن",
|
||||
identityNo: "1205",
|
||||
genderId: 26,
|
||||
});
|
||||
|
||||
expect(payload).toMatchObject({
|
||||
NationalCode: "2002166323",
|
||||
CityId: 9131,
|
||||
PersonKindId: 46,
|
||||
GenderId: 26,
|
||||
Name: "محمدعلي",
|
||||
LastName: "موسوي",
|
||||
FatherName: "حسن",
|
||||
IdentityNo: "1205",
|
||||
});
|
||||
});
|
||||
|
||||
it("returns null when national code or birthday is missing", () => {
|
||||
expect(
|
||||
buildFanavaranOtherPeoplePayload({
|
||||
|
||||
Reference in New Issue
Block a user