mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user