aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/parallel/test-assert.js2
-rw-r--r--test/parallel/test-net-pipe-connect-errors.js2
-rw-r--r--test/parallel/test-tick-processor.js28
-rw-r--r--tools/eslint-rules/align-function-arguments.js1
4 files changed, 16 insertions, 17 deletions
diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js
index d06f7b678e..b2e2ea4deb 100644
--- a/test/parallel/test-assert.js
+++ b/test/parallel/test-assert.js
@@ -376,7 +376,7 @@ try {
} catch (e) {
threw = true;
assert(e instanceof AnotherErrorType,
- `expected AnotherErrorType, received ${e}`);
+ `expected AnotherErrorType, received ${e}`);
}
assert.ok(threw);
diff --git a/test/parallel/test-net-pipe-connect-errors.js b/test/parallel/test-net-pipe-connect-errors.js
index 8e341015d9..05216731e8 100644
--- a/test/parallel/test-net-pipe-connect-errors.js
+++ b/test/parallel/test-net-pipe-connect-errors.js
@@ -45,7 +45,7 @@ var notSocketClient = net.createConnection(emptyTxt, function() {
notSocketClient.on('error', function(err) {
assert(err.code === 'ENOTSOCK' || err.code === 'ECONNREFUSED',
- `received ${err.code} instead of ENOTSOCK or ECONNREFUSED`);
+ `received ${err.code} instead of ENOTSOCK or ECONNREFUSED`);
notSocketErrorFired = true;
});
diff --git a/test/parallel/test-tick-processor.js b/test/parallel/test-tick-processor.js
index 686e717836..3abb97579b 100644
--- a/test/parallel/test-tick-processor.js
+++ b/test/parallel/test-tick-processor.js
@@ -19,14 +19,14 @@ process.chdir(common.tmpDir);
// Unknown checked for to prevent flakiness, if pattern is not found,
// then a large number of unknown ticks should be present
runTest(/LazyCompile.*\[eval\]:1|.*% UNKNOWN/,
- `function f() {
- for (var i = 0; i < 1000000; i++) {
- i++;
- }
- setImmediate(function() { f(); });
- };
- setTimeout(function() { process.exit(0); }, 2000);
- f();`);
+ `function f() {
+ for (var i = 0; i < 1000000; i++) {
+ i++;
+ }
+ setImmediate(function() { f(); });
+ };
+ setTimeout(function() { process.exit(0); }, 2000);
+ f();`);
if (common.isWindows ||
common.isSunOS ||
common.isAix ||
@@ -36,12 +36,12 @@ if (common.isWindows ||
return;
}
runTest(/RunInDebugContext/,
- `function f() {
- require(\'vm\').runInDebugContext(\'Debug\');
- setImmediate(function() { f(); });
- };
- setTimeout(function() { process.exit(0); }, 2000);
- f();`);
+ `function f() {
+ require(\'vm\').runInDebugContext(\'Debug\');
+ setImmediate(function() { f(); });
+ };
+ setTimeout(function() { process.exit(0); }, 2000);
+ f();`);
function runTest(pattern, code) {
cp.execFileSync(process.execPath, ['-prof', '-pe', code]);
diff --git a/tools/eslint-rules/align-function-arguments.js b/tools/eslint-rules/align-function-arguments.js
index a8cd71660d..55ce5a4fdb 100644
--- a/tools/eslint-rules/align-function-arguments.js
+++ b/tools/eslint-rules/align-function-arguments.js
@@ -33,7 +33,6 @@ function checkArgumentAlignment(context, node) {
'CallExpression',
'FunctionExpression',
'ObjectExpression',
- 'TemplateLiteral'
];
const args = node.arguments;