summaryrefslogtreecommitdiff
path: root/node_modules/stream-shift/test.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-15 18:39:22 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-15 18:39:22 +0800
commitfc20313fc9b457d6676ad273227f6bad3c652b92 (patch)
tree9935855ffdd7a2d5d0ef5659f63309b4e15fa014 /node_modules/stream-shift/test.js
parentd76c63da1426adbb2031ae4562d29521d621d817 (diff)
upgrade for package
Diffstat (limited to 'node_modules/stream-shift/test.js')
-rw-r--r--node_modules/stream-shift/test.js8
1 files changed, 4 insertions, 4 deletions
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()
})