update the IsLicenseReplaced and for the accessories

This commit is contained in:
2026-11-11 17:20:02 +03:30
parent 54459877a2
commit 90bdc51715
13 changed files with 693 additions and 124 deletions
@@ -49,6 +49,10 @@ function setup(product = "third-party", extra: any = {}) {
"vehicle-hull-accident-types": 4,
"vehicle-hull-accident-culprit-type": 301,
"detection-accident-culprits": 8,
"accident-causes": 6,
"driving-licence-types": 2,
"vehicle-use-types": 1,
ans: 0,
};
return [
{ Id: ids[name], Caption: "گزینه معتبر", IsActive: 1 },
@@ -166,6 +170,9 @@ describe("Expert Fanavaran stage fields", () => {
payload.CustomerFaultPercent = 100;
payload.AuthorityCulpritId = 1;
});
management.fanavaranLookupService = {
bodyPolicyById: jest.fn().mockResolvedValue({ TotalPremium: 123456 }),
};
const payload = await management.previewFanavaranSubmitV2(id, clientKey, {
persistPayload: false,
forceRefreshPolicy: false,
@@ -195,7 +202,7 @@ describe("Expert Fanavaran stage fields", () => {
CulpritTypeId: 301,
AuthorityCulpritId: 8,
CustomerFaultPercent: 0,
IsLicenseReplaced: null,
IsLicenseReplaced: 0,
});
expect(payload.DamagedCount).toBeUndefined();
expect(payload.IsLicenseReplacement).toBeUndefined();