summaryrefslogtreecommitdiff
path: root/test/sequential/test-cli-syntax-bad.js
diff options
context:
space:
mode:
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