import { CogniteWellsClient } from "src"; import { exampleWellboreSourceItems } from "../../fixtures/wellboreSourceFixtures"; import { exampleWellSourceItems } from "../../fixtures/wellSourceFixtures"; import { exampleNdsIngestion } from "../../fixtures/ndsIngestionFixtures"; import { setupLoggedInIngestionClient } from "../../testUtils"; let client: CogniteWellsClient; beforeAll(async () => { client = await setupLoggedInIngestionClient(); }); test("ingest nds event", async () => { expect(client).not.toBe(undefined); await client.wells.ingest(exampleWellSourceItems); await client.wellbores.ingest(exampleWellboreSourceItems); const sources = await client.nds.ingest([exampleNdsIngestion]); const actual = sources.items[0]; const expected = exampleNdsIngestion; expect(actual.topMeasuredDepth).toStrictEqual(expected.topMeasuredDepth); expect(actual.baseMeasuredDepth).toStrictEqual(expected.baseMeasuredDepth); expect(actual.source.eventExternalId).toBe(expected.source.eventExternalId); });