From 03aa2e1b7bbbc0de323cdefd7d5c82025e42197c Mon Sep 17 00:00:00 2001 From: ProdipRoy89 Date: Mon, 2 Mar 2020 04:58:27 -0800 Subject: [PATCH] test: changed function to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/32045 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Tobias Nießen --- test/parallel/test-stream3-pause-then-read.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-stream3-pause-then-read.js b/test/parallel/test-stream3-pause-then-read.js index bfd8a2037323c7..1a3854722052d7 100644 --- a/test/parallel/test-stream3-pause-then-read.js +++ b/test/parallel/test-stream3-pause-then-read.js @@ -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);