From c279c34ea6f99b7eadd44c4ecc3d27b4fc983878 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 2 Mar 2021 12:46:33 +0100 Subject: [PATCH] Removed warning --- test/streams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/streams.js b/test/streams.js index 661e125..77b722f 100644 --- a/test/streams.js +++ b/test/streams.js @@ -199,7 +199,7 @@ test('nil processing works', function (t) { t.equal(decodedItemIndex, 2) }) - decoder.write(new Buffer([0xc0, 0xc2])) + decoder.write(Buffer.from([0xc0, 0xc2])) decoder.end() })