From 5b08ba78a3e208ac1787911673bfea1cad6d00aa Mon Sep 17 00:00:00 2001 From: William Law Date: Thu, 2 Jul 2020 20:24:39 -0400 Subject: [PATCH] change test: buffer to string (#2042) --- 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() {