Skip to content

Commit

Permalink
test: replace anonymous closure with arrow func
Browse files Browse the repository at this point in the history
PR-URL: #24480
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
suman-mitra authored and rvagg committed Nov 28, 2018
1 parent c4f16dd commit b309dd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-stream2-unpipe-drain.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ const src2 = new TestReader();

src1.pipe(dest);

src1.once('readable', function() {
process.nextTick(function() {
src1.once('readable', () => {
process.nextTick(() => {

src2.pipe(dest);

src2.once('readable', function() {
process.nextTick(function() {
src2.once('readable', () => {
process.nextTick(() => {

src1.unpipe(dest);
});
Expand All @@ -66,7 +66,7 @@ src1.once('readable', function() {
});


process.on('exit', function() {
process.on('exit', () => {
assert.strictEqual(src1.reads, 2);
assert.strictEqual(src2.reads, 2);
});

0 comments on commit b309dd2

Please sign in to comment.