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 <gpunathi@in.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
suman-mitra authored and codebytere committed Jan 29, 2019
1 parent 636de36 commit fe96ecd
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 fe96ecd

Please sign in to comment.