diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-01-15 18:39:22 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-01-15 18:39:22 +0800 |
| commit | fc20313fc9b457d6676ad273227f6bad3c652b92 (patch) | |
| tree | 9935855ffdd7a2d5d0ef5659f63309b4e15fa014 /node_modules/stream-shift/test.js | |
| parent | d76c63da1426adbb2031ae4562d29521d621d817 (diff) | |
upgrade for package
Diffstat (limited to 'node_modules/stream-shift/test.js')
| -rw-r--r-- | node_modules/stream-shift/test.js | 8 |
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() }) |
