forked from Yara724/api
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:
@@ -1,6 +1,8 @@
|
||||
import { Test, TestingModule } from "@nestjs/testing";
|
||||
import { ProfileController } from "./profile.controller";
|
||||
import { ProfileService } from "./profile.service";
|
||||
import { PlatesService } from "src/plates/plates.service";
|
||||
import { JwtService } from "@nestjs/jwt";
|
||||
|
||||
describe("ProfileController", () => {
|
||||
let controller: ProfileController;
|
||||
@@ -8,7 +10,11 @@ describe("ProfileController", () => {
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [ProfileController],
|
||||
providers: [ProfileService],
|
||||
providers: [
|
||||
{ provide: ProfileService, useValue: {} },
|
||||
{ provide: PlatesService, useValue: {} },
|
||||
{ provide: JwtService, useValue: {} },
|
||||
],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<ProfileController>(ProfileController);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user