Fixed mock data

This commit is contained in:
SepehrYahyaee
2026-09-14 16:06:39 +03:30
parent 9930e9ff5b
commit e7103a9408
2 changed files with 9 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import {
} from "@nestjs/common";
import { ExternalInquirySettingsService } from "src/client/external-inquiry-settings.service";
import { SandHubDetailDto } from "./dto/sand-hub.dto";
import { isMappedPolicyCurrent } from "src/request-management/inquiry-participant-resolver";
describe("SandHubService inquiry mocks", () => {
const httpService = { post: jest.fn() };
@@ -56,6 +57,12 @@ describe("SandHubService inquiry mocks", () => {
});
});
it("keeps disabled-live third-party mock policy usable", async () => {
const result = await service.getTejaratBlockInquiry(userDetail);
expect(isMappedPolicyCurrent(result.mapped)).toBe(true);
});
it("returns car-body mock without HTTP when carBodyPlate is off", async () => {
const result = await service.getTejaratCarBodyInquiry(userDetail);