From: Feross Aboukhadijeh Date: Fri, 23 Oct 2020 20:39:55 +0000 (-1000) Subject: fix tests – use same proto X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=986e3edb7a197eb90f0aa26d66283b87ca571e1a;p=buffer.git fix tests – use same proto --- diff --git a/test/methods.js b/test/methods.js index 273532b..082c5df 100644 --- a/test/methods.js +++ b/test/methods.js @@ -62,7 +62,7 @@ test('concat() a varying number of buffers', function (t) { test('concat() works on Uint8Array instances', function (t) { var result = B.concat([new Uint8Array([1, 2]), new Uint8Array([3, 4])]) - var expected = Buffer.from([1, 2, 3, 4]) + var expected = B.from([1, 2, 3, 4]) t.deepEqual(result, expected) t.end() })