test.js fixes for windows

This commit is contained in:
SheetJS 2014-05-29 21:09:20 -04:00
parent a3d9c4d9ac
commit f63426167d

@ -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);