From 3bdb4b939cd21692df8d91596f2f06e7f961d666 Mon Sep 17 00:00:00 2001 From: David Jimenez Date: Thu, 22 Jun 2017 20:13:06 -0500 Subject: [PATCH] Fix LATIN1 decode test It does not work as the latest version of the decode function requires a Buffer, not just an array. --- test/01_encodings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/01_encodings.js b/test/01_encodings.js index 23ab6e5..ac7a1ee 100644 --- a/test/01_encodings.js +++ b/test/01_encodings.js @@ -88,7 +88,7 @@ describe('encodings', function() { var str; for (str in samples) { - assert.deepEqual(LATIN1.decode(samples[str]), str); + assert.deepEqual(LATIN1.decode(new Buffer(samples[str])), str); } }); });