You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
698 B
21 lines
698 B
import { serializedToSubscribableDataset } from "../src/index.js";
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
import { turtleData, jsonLdData } from "@ldo/dataset/test/sampleData";
|
|
|
|
describe("createExtendedDatasetFromSerializedInput", () => {
|
|
it("creates a dataset with turtle", async () => {
|
|
const dataset = await serializedToSubscribableDataset(turtleData);
|
|
expect(dataset.size).toBe(9);
|
|
});
|
|
|
|
it.skip("creates a dataset with json-ld", async () => {
|
|
const dataset = await serializedToSubscribableDataset(
|
|
JSON.stringify(jsonLdData),
|
|
{
|
|
format: "application/ld+json",
|
|
},
|
|
);
|
|
expect(dataset.size).toBe(9);
|
|
});
|
|
});
|
|
|