Test index out of bounds

This commit is contained in:
Dolan
2019-03-05 01:45:04 +00:00
parent 367518d504
commit 50fc9b6274

View File

@ -22,6 +22,12 @@ describe("TableColumn", () => {
expect(cell2).to.deep.equal(cells[1]); expect(cell2).to.deep.equal(cells[1]);
}); });
it("should throw an error if index is out of bounds", () => {
const tableColumn = new TableColumn(cells);
expect(() => tableColumn.getCell(9)).to.throw();
});
}); });
describe("#mergeCells", () => { describe("#mergeCells", () => {