forked from Yara724/api
Fixed mock data
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
} from "@nestjs/common";
|
} from "@nestjs/common";
|
||||||
import { ExternalInquirySettingsService } from "src/client/external-inquiry-settings.service";
|
import { ExternalInquirySettingsService } from "src/client/external-inquiry-settings.service";
|
||||||
import { SandHubDetailDto } from "./dto/sand-hub.dto";
|
import { SandHubDetailDto } from "./dto/sand-hub.dto";
|
||||||
|
import { isMappedPolicyCurrent } from "src/request-management/inquiry-participant-resolver";
|
||||||
|
|
||||||
describe("SandHubService inquiry mocks", () => {
|
describe("SandHubService inquiry mocks", () => {
|
||||||
const httpService = { post: jest.fn() };
|
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 () => {
|
it("returns car-body mock without HTTP when carBodyPlate is off", async () => {
|
||||||
const result = await service.getTejaratCarBodyInquiry(userDetail);
|
const result = await service.getTejaratCarBodyInquiry(userDetail);
|
||||||
|
|
||||||
|
|||||||
@@ -200,7 +200,8 @@ export class SandHubService {
|
|||||||
CompanyCode: ctx.companyId,
|
CompanyCode: ctx.companyId,
|
||||||
IssueDate: "1403/04/06",
|
IssueDate: "1403/04/06",
|
||||||
SatrtDate: "1403/04/06",
|
SatrtDate: "1403/04/06",
|
||||||
EndDate: "1404/04/06",
|
// Keep disabled-live mock mode stable; this fixture must not expire with wall-clock time.
|
||||||
|
EndDate: "1499/12/29",
|
||||||
Thrname: "",
|
Thrname: "",
|
||||||
EndorseText: null,
|
EndorseText: null,
|
||||||
PolicyHealthLossCount: 0,
|
PolicyHealthLossCount: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user