forked from Yara724/api
Fixed mock data
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user