]> zoso.dev Git - buffer.git/commitdiff
fix tests – use same proto
authorFeross Aboukhadijeh <feross@feross.org>
Fri, 23 Oct 2020 20:39:55 +0000 (10:39 -1000)
committerFeross Aboukhadijeh <feross@feross.org>
Fri, 23 Oct 2020 20:39:55 +0000 (10:39 -1000)
test/methods.js

index 273532bdc70aad6b44092e54e875c2c72c0df155..082c5dfbc67104d26588d28f991f17b7dd974687 100644 (file)
@@ -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()
 })