forked from Yara724/api
update the IsLicenseReplaced and for the accessories
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user