Mercurial > code > home > repos > streamed-graph
view src/json_ld_quads.test.ts @ 17:94629c39681c
trying to do ts+jest. WIP
author | drewp@bigasterisk.com |
---|---|
date | Thu, 12 Dec 2019 22:52:57 -0800 |
parents | |
children | 9ec3cbc8791a |
line wrap: on
line source
import {describe, test} from 'jest'; // import { eachJsonLdQuad } from './json_ld_quads'; describe("eachJsonLdQuad", () => { test("finds multiple graphs", () => { }); // test("returns quads", async () => { // let results = []; // await eachJsonLdQuad([ // { // "@id": "http://example.com/g1", // "@graph": [{ // "@id": "http://example.com/s1", // "http://example.com/p1": [{ "@value": "lit1" }] // }], // } // ], results.push); // expect(results).toEqual('f') // }); });