From ee37eaa79be63a3e205f7fc848e7f2b0bc8c3e4d Mon Sep 17 00:00:00 2001 From: wlawt Date: Thu, 2 Jul 2020 20:02:32 -0400 Subject: [PATCH] change test: buffer to string --- tests/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core.js b/tests/core.js index 6e37e77..2a0e7ef 100644 --- a/tests/core.js +++ b/tests/core.js @@ -1973,7 +1973,7 @@ describe('CSV', function() { assert.equal(get_cell(sheet, "C1").v, '100'); }); it('should interpret CRLF newlines', function() { - var wb = X.read(new Buffer("sep=&\r\n1&2&3\r\n4&5&6"), {type: "buffer"}); + var wb = X.read("sep=&\r\n1&2&3\r\n4&5&6", {type: "string"}); assert.equal(wb.Sheets.Sheet1["!ref"], "A1:C2"); }); if(!browser || typeof cptable !== 'undefined') it('should honor codepage for binary strings', function() { -- 2.34.1