summaryrefslogtreecommitdiff
path: root/test/parallel/test-file-write-stream3.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-09-08 02:30:07 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-09-11 23:45:07 +0200
commitb5430d782d1c00ecdc421ad28b4f6c5ff62ba972 (patch)
treeb4bb8637e2dbab8bc0455799ba2301346486623a /test/parallel/test-file-write-stream3.js
parente4dd213516afdff64063682e0d0d46c58499a9f3 (diff)
downloadandroid-node-v8-b5430d782d1c00ecdc421ad28b4f6c5ff62ba972.tar.gz
android-node-v8-b5430d782d1c00ecdc421ad28b4f6c5ff62ba972.tar.bz2
android-node-v8-b5430d782d1c00ecdc421ad28b4f6c5ff62ba972.zip
assert: align argument names
This makes sure the documented argument names and the ones thrown in errors is aligned with the actual argument name. PR-URL: https://github.com/nodejs/node/pull/22760 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Diffstat (limited to 'test/parallel/test-file-write-stream3.js')
-rw-r--r--test/parallel/test-file-write-stream3.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-file-write-stream3.js b/test/parallel/test-file-write-stream3.js
index 6bb64e6092..db16318a5c 100644
--- a/test/parallel/test-file-write-stream3.js
+++ b/test/parallel/test-file-write-stream3.js
@@ -178,7 +178,7 @@ function run_test_3() {
const run_test_4 = common.mustCall(function() {
// Error: start must be >= zero
- const block = () => {
+ const fn = () => {
fs.createWriteStream(filepath, { start: -5, flags: 'r+' });
};
const err = {
@@ -187,7 +187,7 @@ const run_test_4 = common.mustCall(function() {
'It must be >= 0. Received {start: -5}',
type: RangeError
};
- common.expectsError(block, err);
+ common.expectsError(fn, err);
});
run_test_1();