-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* inlineStr cell type support #1575 * Added integration test for #1575 Co-authored-by: Siemienik Pawel <siemienik.pawel@gmail.com> Co-authored-by: Andreas Lubbe <git@lubbe.org>
- Loading branch information
1 parent
f150952
commit 33d833f
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const ExcelJS = verquire('exceljs'); | ||
|
||
describe('github issues', () => { | ||
describe('pull request 1576 - inlineStr cell type support', () => { | ||
it('Reading test-issue-1575.xlsx', () => { | ||
const wb = new ExcelJS.Workbook(); | ||
return wb.xlsx | ||
.readFile('./spec/integration/data/test-issue-1575.xlsx') | ||
.then(() => { | ||
const ws = wb.getWorksheet('Sheet1'); | ||
expect(ws.getCell('A1').value).to.equal('A'); | ||
expect(ws.getCell('B1').value).to.equal('B'); | ||
expect(ws.getCell('C1').value).to.equal('C'); | ||
expect(ws.getCell('A2').value).to.equal('1.0'); | ||
expect(ws.getCell('B2').value).to.equal('2.0'); | ||
expect(ws.getCell('C2').value).to.equal('3.0'); | ||
expect(ws.getCell('A3').value).to.equal('4.0'); | ||
expect(ws.getCell('B3').value).to.equal('5.0'); | ||
expect(ws.getCell('C3').value).to.equal('6.0'); | ||
}); | ||
}); | ||
}); | ||
}); |