We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90e1d9 commit 4fddd22Copy full SHA for 4fddd22
test.js
@@ -20,7 +20,7 @@ test('string', async t => {
20
});
21
22
test('buffer', async t => {
23
- const f = new Buffer(fixture);
+ const f = Buffer.from(fixture);
24
t.true((await getStream.buffer(m(f))).equals(f));
25
26
@@ -104,7 +104,7 @@ test.cb('pushes chunk on next tick', t => {
104
flag = true;
105
106
107
- m(new Buffer(fixture)).on('data', () => {
+ m(Buffer.from(fixture)).on('data', () => {
108
t.true(flag);
109
t.end();
110
0 commit comments