Skip to content

Commit

Permalink
Add another test for lastColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Oct 5, 2020
1 parent fe3dc24 commit b6762d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/integration/pr/test-pr-1487.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const ExcelJS = verquire('exceljs');

describe('github issues', () => {
describe('pull request 1487 - lastColumn with an empty column', () => {
it('Reading 1904.xlsx', () => {
const wb = new ExcelJS.Workbook();
return wb.xlsx.readFile('./spec/integration/data/1904.xlsx').then(() => {
const ws = wb.getWorksheet('Sheet1');
expect(ws.lastColumn).to.equal(ws.getColumn(2));
});
});
});
// the new property is also tested in gold.spec.js
});

0 comments on commit b6762d7

Please sign in to comment.