changeset 14:497d50f8fe5b

start some jsonldquad tests
author drewp@localhost
date Fri, 06 Dec 2019 20:34:01 -0800
parents b9f451791f3a
children 7ca4ff2088c3 94629c39681c
files src/json_ld_quads_test.ts
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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