diff --git a/src/file/table/table-column.spec.ts b/src/file/table/table-column.spec.ts index c1860c2d5c..a536bcd01b 100644 --- a/src/file/table/table-column.spec.ts +++ b/src/file/table/table-column.spec.ts @@ -22,6 +22,12 @@ describe("TableColumn", () => { 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", () => {