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