comparison src/json_ld_quads_test.ts @ 14:497d50f8fe5b

start some jsonldquad tests
author drewp@localhost
date Fri, 06 Dec 2019 20:34:01 -0800
parents
children 7ca4ff2088c3
comparison
equal deleted inserted replaced
13:b9f451791f3a 14:497d50f8fe5b
1 import { eachJsonLdQuad } from './json_ld_quads';
2
3 describe("eachJsonLdQuad", () => {
4 it("finds multiple graphs", () => {
5 });
6 it("returns quads", async () => {
7 let results = [];
8 await eachJsonLdQuad([
9 {
10 "@id": "http://example.com/g1",
11 "@graph": [{
12 "@id": "http://example.com/s1",
13 "http://example.com/p1": [{ "@value": "lit1" }]
14 }],
15 }
16 ], results.push);
17 expect(results).toEqual('f')
18 });
19 });