forked from sheetjs/sheetjs
test.js fixes for windows
This commit is contained in:
parent
a3d9c4d9ac
commit
f63426167d
2
test.js
2
test.js
@ -56,7 +56,7 @@ function parsetest(x, wb, full, ext) {
|
||||
wb.SheetNames.forEach(function(y) { assert(wb.Sheets[y], 'bad sheet ' + y); });
|
||||
});
|
||||
it('should have the right sheet names', fs.existsSync(sname) ? function() {
|
||||
var file = fs.readFileSync(sname, 'utf-8');
|
||||
var file = fs.readFileSync(sname, 'utf-8').replace(/\r/g,"");
|
||||
var names = wb.SheetNames.map(fixsheetname).join("\n") + "\n";
|
||||
assert.equal(names, file);
|
||||
} : null);
|
||||
|
Loading…
Reference in New Issue
Block a user