test: changed function to arrow function

PR-URL: https://github.com/nodejs/node/pull/32045
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
ProdipRoy89 authored and Shelley Vohr committed 2020-03-30 11:00:28 -07:00
1 parent 36ae81a52a
commit 03aa2e1b7b
1 file changed
+2 -2
@@ -108,7 +108,7 @@ function pipeLittle() {
console.error('pipe a little');
const w = new Writable();
let written = 0;
w.on('finish', function() {
w.on('finish', () => {
assert.strictEqual(written, 200);
setImmediate(read1234);
});
@@ -160,7 +160,7 @@ function pipe() {
written += chunk.length;
cb();
};
w.on('finish', function() {
w.on('finish', () => {
console.error('written', written, totalPushed);
assert.strictEqual(written, expectEndingData);
assert.strictEqual(totalPushed, expectTotalData);