import { CogniteWellsClient } from "src"; import { setupLoggedInClient } from "../../testUtils"; import { exampleWellTopIngestionItems } from "../../fixtures/wellTopFixtures"; let client: CogniteWellsClient; beforeAll(async () => { client = await setupLoggedInClient(); }); test("ingest well tops", async () => { expect(client).not.toBe(undefined); const wellTopItems = await client.wellTops.ingest( exampleWellTopIngestionItems ); expect(wellTopItems.items.length).toBe(1); const actual = wellTopItems.items[0]; const expected = exampleWellTopIngestionItems.items[0]; expect(actual.source).toStrictEqual(expected.source); expect(actual.tops.map((surf) => surf.name)).toStrictEqual( expected.tops.map((surf) => surf.name) ); expect(actual.phase).toBe(expected.phase); });