import {Table, Sum} from './table'; describe("table library", ()=> { var table: Table; var rows: Array>; var summationColumns: Array; rows = [ ["a","1"], ["b","2"], ["a","3"], ["b","1"], ["a","2"], ["b","3"], ]; summationColumns = [1]; table = new Table("Root", rows, summationColumns); it("should create a table", ()=> { expect(table.Name).toEqual("Root"); expect(table.Rows).toEqual(rows); }); })