From e7103a94084c11c605d249fc54f5819b786e7a12 Mon Sep 17 00:00:00 2001 From: SepehrYahyaee <7heycallmegray@gmail.com> Date: Mon, 14 Sep 2026 16:06:39 +0330 Subject: [PATCH] Fixed mock data --- src/sand-hub/sand-hub.service.spec.ts | 7 +++++++ src/sand-hub/sand-hub.service.ts | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sand-hub/sand-hub.service.spec.ts b/src/sand-hub/sand-hub.service.spec.ts index 357ae0a..fccdefc 100644 --- a/src/sand-hub/sand-hub.service.spec.ts +++ b/src/sand-hub/sand-hub.service.spec.ts @@ -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); diff --git a/src/sand-hub/sand-hub.service.ts b/src/sand-hub/sand-hub.service.ts index a7a334b..18f51cd 100644 --- a/src/sand-hub/sand-hub.service.ts +++ b/src/sand-hub/sand-hub.service.ts @@ -200,7 +200,8 @@ export class SandHubService { CompanyCode: ctx.companyId, IssueDate: "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: "", EndorseText: null, PolicyHealthLossCount: 0,