We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb5e5d commit c177799Copy full SHA for c177799
test/parallel/test-stream-unshift-empty-chunk.js
@@ -32,14 +32,14 @@ let nChunks = 10;
32
const chunk = Buffer.alloc(10, 'x');
33
34
r._read = function(n) {
35
- setImmediate(function() {
+ setImmediate(() => {
36
r.push(--nChunks === 0 ? null : chunk);
37
});
38
};
39
40
let readAll = false;
41
const seen = [];
42
-r.on('readable', function() {
+r.on('readable', () => {
43
let chunk;
44
while (chunk = r.read()) {
45
seen.push(chunk.toString());
@@ -74,7 +74,7 @@ const expect =
74
'xxxxxxxxxx',
75
'yyyyy' ];
76
77
-r.on('end', function() {
+r.on('end', () => {
78
assert.deepStrictEqual(seen, expect);
79
console.log('ok');
80
0 commit comments