From fc20313fc9b457d6676ad273227f6bad3c652b92 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 15 Jan 2024 18:39:22 +0800 Subject: upgrade for package --- node_modules/stream-shift/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node_modules/stream-shift/test.js') diff --git a/node_modules/stream-shift/test.js b/node_modules/stream-shift/test.js index c0222c37..bf4ed668 100644 --- a/node_modules/stream-shift/test.js +++ b/node_modules/stream-shift/test.js @@ -9,8 +9,8 @@ tape('shifts next', function (t) { passthrough.write('hello') passthrough.write('world') - t.same(shift(passthrough), Buffer('hello')) - t.same(shift(passthrough), Buffer('world')) + t.same(shift(passthrough), Buffer.from('hello')) + t.same(shift(passthrough), Buffer.from('world')) t.end() }) @@ -20,8 +20,8 @@ tape('shifts next with core', function (t) { passthrough.write('hello') passthrough.write('world') - t.same(shift(passthrough), Buffer('hello')) - t.same(shift(passthrough), Buffer('world')) + t.same(shift(passthrough), Buffer.from('hello')) + t.same(shift(passthrough), Buffer.from('world')) t.end() }) -- cgit v1.2.3