UNPKG

@dpkit/ckan

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

26 lines (21 loc) 840 B
import { loadPackageDescriptor } from "@dpkit/core" //import { useRecording } from "@dpkit/test" import { describe, expect, it } from "vitest" import { savePackageToCkan } from "./save.ts" describe("savePackageToCkan", () => { //useRecording() it.skip("should save a package", async () => { const dataPackage = await loadPackageDescriptor( "core/package/fixtures/package.json", ) const result = await savePackageToCkan(dataPackage, { ckanUrl: "http://localhost:5000/", apiKey: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJ1T0Y0VUNybTU5Y0dzdlk3ejhreF9CeC02R0w4RDBOdW9QS0J0WkJFXzlJIiwiaWF0IjoxNzQ3OTI0NDg5fQ.ioGiLlZkm24xHQRBas5X5ig5eU7u_fIjkl4oifGnLaA", datasetName: "test", ownerOrg: "test", }) expect(result).toBeDefined() //expect(result).toMatchSnapshot() }) })