Skip to content

Commit 3d64c9e

Browse files
ProdipRoy89MylesBorins
authored andcommitted
test: changed function to arrow function
PR-URL: #32045 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 6413524 commit 3d64c9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-stream3-pause-then-read.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function pipeLittle() {
108108
console.error('pipe a little');
109109
const w = new Writable();
110110
let written = 0;
111-
w.on('finish', function() {
111+
w.on('finish', () => {
112112
assert.strictEqual(written, 200);
113113
setImmediate(read1234);
114114
});
@@ -160,7 +160,7 @@ function pipe() {
160160
written += chunk.length;
161161
cb();
162162
};
163-
w.on('finish', function() {
163+
w.on('finish', () => {
164164
console.error('written', written, totalPushed);
165165
assert.strictEqual(written, expectEndingData);
166166
assert.strictEqual(totalPushed, expectTotalData);

0 commit comments

Comments
 (0)