Skip to content
Permalink
Browse files

test: use arrow function for callback in stream test

PR-URL: #30561
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
Trott authored and MylesBorins committed Nov 20, 2019
1 parent 4a5f00c commit 59c9592679d6e61472aee974fb3e82d5dbe59021
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/sequential/test-stream-writable-clear-buffer.js
@@ -23,7 +23,7 @@ const testStream = new StreamWritable();
testStream.cork();

for (let i = 1; i <= 5; i++) {
testStream.write(i, function() {
testStream.write(i, () => {
assert.strictEqual(
testStream._writableState.bufferedRequestCount,
testStream._writableState.getBuffer().length,

0 comments on commit 59c9592

Please sign in to comment.
You can’t perform that action at this time.