Fix LATIN1 decode test
It does not work as the latest version of the decode function requires a Buffer, not just an array.
This commit is contained in:
@@ -88,7 +88,7 @@ describe('encodings', function() {
|
|||||||
var str;
|
var str;
|
||||||
|
|
||||||
for (str in samples) {
|
for (str in samples) {
|
||||||
assert.deepEqual(LATIN1.decode(samples[str]), str);
|
assert.deepEqual(LATIN1.decode(new Buffer(samples[str])), str);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user