Mercurial > code > home > repos > streamed-graph
diff src/layout/Layout.test.ts @ 114:4b33a479dc2f
fix layout test to match new layout return types. clean up UriPairMap
author | drewp@bigasterisk.com |
---|---|
date | Sat, 19 Mar 2022 16:12:49 -0700 |
parents | cbcd82d21356 |
children | dd3325cc023e |
line wrap: on
line diff
--- a/src/layout/Layout.test.ts Sat Mar 19 15:45:03 2022 -0700 +++ b/src/layout/Layout.test.ts Sat Mar 19 16:12:49 2022 -0700 @@ -82,12 +82,14 @@ expect(sec0.columnHeaders).toEqual([ { rdfType: EX("T1"), pred: EX("color") }, { rdfType: EX("T1"), pred: EX("size") }, + // and doesn't include rdf:type as a column header here ]); + expect(sec0.rowHeaders).toEqual([EX("a"), EX("b"), EX("c"), EX("e")]); expect(sec0.rows).toEqual([ - [EX("a"), EX("red"), null], - [EX("b"), EX("blue"), null], - [EX("c"), null, null], - [EX("e"), null, EX("small")], + [[EX("red")], []], + [[EX("blue")], []], + [[], []], + [[], [EX("small")]], ]); }); it("leaves the rest ungrouped", async () => { @@ -104,7 +106,7 @@ }); }); }); - it("makes a table out of ungrouped triples with the same type", async () => {}); + it.skip("makes a table out of ungrouped triples with the same type", async () => {}); }); // describe("equality", () => {