From f63426167d9f730cfb47ac10c3cbbc41b0245430 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Thu, 29 May 2014 21:09:20 -0400 Subject: [PATCH] test.js fixes for windows --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index a249169..500e5e0 100644 --- a/test.js +++ b/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);