Skip to content

Commit b309dd2

Browse files
suman-mitrarvagg
authored andcommitted
test: replace anonymous closure with arrow func
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]>
1 parent c4f16dd commit b309dd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-stream2-unpipe-drain.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ const src2 = new TestReader();
5151

5252
src1.pipe(dest);
5353

54-
src1.once('readable', function() {
55-
process.nextTick(function() {
54+
src1.once('readable', () => {
55+
process.nextTick(() => {
5656

5757
src2.pipe(dest);
5858

59-
src2.once('readable', function() {
60-
process.nextTick(function() {
59+
src2.once('readable', () => {
60+
process.nextTick(() => {
6161

6262
src1.unpipe(dest);
6363
});
@@ -66,7 +66,7 @@ src1.once('readable', function() {
6666
});
6767

6868

69-
process.on('exit', function() {
69+
process.on('exit', () => {
7070
assert.strictEqual(src1.reads, 2);
7171
assert.strictEqual(src2.reads, 2);
7272
});

0 commit comments

Comments
 (0)