forked from sheetjs/sheetjs
change test: buffer to string (#2042)
This commit is contained in:
parent
8ecbf4dc97
commit
5b08ba78a3
2
tests/core.js
generated
2
tests/core.js
generated
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user