change test: buffer to string (#2042)

This commit is contained in:
William Law 2020-07-02 20:24:39 -04:00 committed by GitHub
parent 8ecbf4dc97
commit 5b08ba78a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
tests/core.js generated
View File

@ -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() {