annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
1 import {describe, test} from 'jest';
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
2
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
3 // import { eachJsonLdQuad } from './json_ld_quads';
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
4
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
5 describe("eachJsonLdQuad", () => {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
6 test("finds multiple graphs", () => {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
7 });
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
8 // test("returns quads", async () => {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
9 // let results = [];
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
10 // await eachJsonLdQuad([
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
11 // {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
12 // "@id": "http://example.com/g1",
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
13 // "@graph": [{
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
14 // "@id": "http://example.com/s1",
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
15 // "http://example.com/p1": [{ "@value": "lit1" }]
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
16 // }],
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
17 // }
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
18 // ], results.push);
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
19 // expect(results).toEqual('f')
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
20 // });
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
21 });