Added extra fanavaran fields

This commit is contained in:
SepehrYahyaee
2026-10-04 12:01:45 +03:30
parent 91074ca1e5
commit 268258a23c
13 changed files with 1216 additions and 38 deletions
@@ -29,7 +29,7 @@ function makeService(overrides?: { kind?: typeof kind }) {
service.getClaimDetailV2 = jest.fn().mockResolvedValue({});
service.claimCaseDbService = {
findById: jest.fn().mockResolvedValue(claim),
findByIdAndUpdate: jest.fn().mockImplementation((_id, update) =>
findOneAndUpdate: jest.fn().mockImplementation((_id, update) =>
Promise.resolve({
...claim,
fanavaranVehicleReview: update.$set.fanavaranVehicleReview,
@@ -103,7 +103,7 @@ describe("Fanavaran vehicle review", () => {
actor,
),
).rejects.toBeInstanceOf(BadRequestException);
expect(service.claimCaseDbService.findByIdAndUpdate).not.toHaveBeenCalled();
expect(service.claimCaseDbService.findOneAndUpdate).not.toHaveBeenCalled();
});
it("blocks outbound stages until all four values are approved", () => {