Skip to content

Commit db408fc

Browse files
author
Olivier Robin
committed
Add test case for the issue exceljs#257
1 parent 3950e0e commit db408fc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
21 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
var chai = require('chai');
4+
var verquire = require('../../utils/verquire');
5+
6+
var Excel = verquire('excel');
7+
8+
var expect = chai.expect;
9+
10+
describe('github issues', function() {
11+
it('issue 257 - worksheet order is not respected', function() {
12+
var wb = new Excel.Workbook();
13+
return wb.xlsx.readFile('./spec/integration/data/test-issue-257.xlsx')
14+
.then(function() {
15+
expect(wb.worksheets.map(ws => ws.name)).to.deep.equal(['First', 'Second']);
16+
});
17+
});
18+
});

0 commit comments

Comments
 (0)