import CogniteWellsClient from "src/client/cogniteWellsClient"; import { setupLoggedInClient } from "../testUtils"; let client: CogniteWellsClient; beforeAll(async () => { client = await setupLoggedInClient(); }); test("list hole sections by properties", async () => { expect(client).not.toBe(undefined); const holeSection = await client.holeSections.list({ filter: { bitSize: { value: 7.5, unit: "inch", }, holeSize: { value: 7.5, unit: "inch", }, topMeasuredDepth: { min: 48, max: 52, unit: "meter", }, baseMeasuredDepth: { min: 90, max: 95, unit: "meter", }, startTime: { min: 1577883600000, max: 1577883600000, }, endTime: { min: 1577887200000, max: 1577887200000, }, }, }); expect(holeSection.items.length).toBe(1); expect(holeSection.items[0].sections.length).toBe(1); });