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: nodejs#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 danbev committed Nov 22, 2018
1 parent 9d34a1e commit 0fad875
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 0fad875

Please sign in to comment.