summaryrefslogtreecommitdiff
path: root/node_modules/stream-shift/test.js
diff options
context:
space:
mode:
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()
})