summaryrefslogtreecommitdiff
path: root/test/sequential/test-cli-syntax-bad.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-01-21 01:22:27 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-02-28 18:31:10 +0100
commit9edce1e12a7b69e7986dd15fce18d6e46590161a (patch)
treec5d37d8016a27bab698520ecc51cda4f7ad99d40 /test/sequential/test-cli-syntax-bad.js
parent7b674697d8005c29391ebaaf562eb4d92ed9b129 (diff)
downloadandroid-node-v8-9edce1e12a7b69e7986dd15fce18d6e46590161a.tar.gz
android-node-v8-9edce1e12a7b69e7986dd15fce18d6e46590161a.tar.bz2
android-node-v8-9edce1e12a7b69e7986dd15fce18d6e46590161a.zip
benchmark,doc,lib,test: capitalize comments
This updates a lot of comments. PR-URL: https://github.com/nodejs/node/pull/26223 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'test/sequential/test-cli-syntax-bad.js')
-rw-r--r--test/sequential/test-cli-syntax-bad.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sequential/test-cli-syntax-bad.js b/test/sequential/test-cli-syntax-bad.js
index 7c4c9c70d9..1512d9df4f 100644
--- a/test/sequential/test-cli-syntax-bad.js
+++ b/test/sequential/test-cli-syntax-bad.js
@@ -7,7 +7,7 @@ const fixtures = require('../common/fixtures');
const node = process.execPath;
-// test both sets of arguments that check syntax
+// Test both sets of arguments that check syntax
const syntaxArgs = [
['-c'],
['--check']
@@ -17,7 +17,7 @@ const syntaxArgs = [
// depending on the JavaScript engine.
const syntaxErrorRE = /^SyntaxError: \b/m;
-// test bad syntax with and without shebang
+// Test bad syntax with and without shebang
[
'syntax/bad_syntax.js',
'syntax/bad_syntax',
@@ -26,7 +26,7 @@ const syntaxErrorRE = /^SyntaxError: \b/m;
].forEach(function(file) {
file = fixtures.path(file);
- // loop each possible option, `-c` or `--check`
+ // Loop each possible option, `-c` or `--check`
syntaxArgs.forEach(function(args) {
const _args = args.concat(file);
const cmd = [node, ..._args].join(' ');
@@ -38,7 +38,7 @@ const syntaxErrorRE = /^SyntaxError: \b/m;
// no stdout should be produced
assert.strictEqual(stdout, '');
- // stderr should have a syntax error message
+ // Stderr should have a syntax error message
assert(syntaxErrorRE.test(stderr), `${syntaxErrorRE} === ${stderr}`);
// stderr should include the filename