# HG changeset patch # User drewp@localhost # Date 1575693241 28800 # Node ID 497d50f8fe5bd1ba56a0d6463abde32b8f054c7d # Parent b9f451791f3a8969bd9bdd296cf6a37345d6b3da start some jsonldquad tests diff -r b9f451791f3a -r 497d50f8fe5b src/json_ld_quads_test.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/json_ld_quads_test.ts Fri Dec 06 20:34:01 2019 -0800 @@ -0,0 +1,19 @@ +import { eachJsonLdQuad } from './json_ld_quads'; + +describe("eachJsonLdQuad", () => { + it("finds multiple graphs", () => { + }); + it("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') + }); +}); \ No newline at end of file