forked from Yara724/api
Added extra fanavaran fields
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user