Skip to content

Commit

Permalink
Add more table tests
Browse files Browse the repository at this point in the history
Signed-off-by: BugDiver <[email protected]>
  • Loading branch information
BugDiver committed Sep 26, 2020
1 parent 49f1273 commit 840f00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/public/TableTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('Table', () => {

expect(() => { Table.from(protoTable); }).toThrowError('Invalid table passed');
});

it('should throw error for given prototable', () => {
const protoTable = new ProtoTable();
const headers = new ProtoTableRow();
Expand Down Expand Up @@ -82,6 +81,7 @@ describe('Table', () => {

table.addRow(["gauge"]);
expect(table.getTableRows()[0].getCellValues()).toStrictEqual(["gauge"]);
expect(table.getTableRows()[0].getCell("tag")).toStrictEqual('');
expect(table.getTableRows()[0].size).toStrictEqual(1);
});
});
Expand Down

0 comments on commit 840f00f

Please sign in to comment.