fix: harden claim review and inquiry workflows

Preserve damage history and current vehicle price, restore depreciation mapping, normalize inquiry/report output, and support resumable expert review with paginated case retrieval.
This commit is contained in:
2026-09-18 16:04:33 +03:30
parent a84d83a135
commit 7d1a50db7b
38 changed files with 2345 additions and 370 deletions

View File

@@ -1,12 +1,22 @@
import { Test, TestingModule } from "@nestjs/testing";
import { ProfileService } from "./profile.service";
import { UserDbService } from "src/users/entities/db-service/user.db.service";
describe("ProfileService", () => {
let service: ProfileService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [ProfileService],
providers: [
ProfileService,
{
provide: UserDbService,
useValue: {
findOne: jest.fn(),
findOneAndUpdate: jest.fn(),
},
},
],
}).compile();
service = module.get<ProfileService>(ProfileService);