summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-10-15 12:16:42 -0700
committerRich Trott <rtrott@gmail.com>2016-10-18 15:28:21 -0700
commit150dc5c2e6a848aa49bb95f4e6c0cbf0da5d0e73 (patch)
treef0b6a90b42d5623f4c23f5ecc583e426390f4c5f /test
parent3f05b67984940b8d307613fa4abd4d373891e4ee (diff)
downloadandroid-node-v8-150dc5c2e6a848aa49bb95f4e6c0cbf0da5d0e73.tar.gz
android-node-v8-150dc5c2e6a848aa49bb95f4e6c0cbf0da5d0e73.tar.bz2
android-node-v8-150dc5c2e6a848aa49bb95f4e6c0cbf0da5d0e73.zip
test: remove unneeded escaping in template strings
The no-useless-escape rule in ESLint did not previously flag certain unnecessary escaping in template strings. These will be flagged in ESLint 3.8.0. PR-URL: https://github.com/nodejs/node/pull/9112 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-debugger-pid.js2
-rw-r--r--test/parallel/test-tick-processor-cpp-core.js2
-rw-r--r--test/parallel/test-vm-cached-data.js2
-rw-r--r--test/sequential/test-child-process-execsync.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-debugger-pid.js b/test/parallel/test-debugger-pid.js
index 1da3481107..2b81da700f 100644
--- a/test/parallel/test-debugger-pid.js
+++ b/test/parallel/test-debugger-pid.js
@@ -43,7 +43,7 @@ interfacer.on('line', function(line) {
}
} else {
line = line.replace(/^(debug> *)+/, '');
- expected = `(node:${pid}) Target process: 655555 doesn\'t exist.`;
+ expected = `(node:${pid}) Target process: 655555 doesn't exist.`;
}
assert.strictEqual(expected, line);
diff --git a/test/parallel/test-tick-processor-cpp-core.js b/test/parallel/test-tick-processor-cpp-core.js
index 2bc595e7ff..72eb25e91c 100644
--- a/test/parallel/test-tick-processor-cpp-core.js
+++ b/test/parallel/test-tick-processor-cpp-core.js
@@ -20,7 +20,7 @@ const base = require('./tick-processor-base.js');
base.runTest({
pattern: /RunInDebugContext/,
code: `function f() {
- require(\'vm\').runInDebugContext(\'Debug\');
+ require('vm').runInDebugContext('Debug');
setImmediate(function() { f(); });
};
f();`
diff --git a/test/parallel/test-vm-cached-data.js b/test/parallel/test-vm-cached-data.js
index d80c1306cb..aa2dd26ad5 100644
--- a/test/parallel/test-vm-cached-data.js
+++ b/test/parallel/test-vm-cached-data.js
@@ -6,7 +6,7 @@ const spawnSync = require('child_process').spawnSync;
const Buffer = require('buffer').Buffer;
function getSource(tag) {
- return `(function ${tag}() { return \'${tag}\'; })`;
+ return `(function ${tag}() { return '${tag}'; })`;
}
function produce(source, count) {
diff --git a/test/sequential/test-child-process-execsync.js b/test/sequential/test-child-process-execsync.js
index e16fa32a40..01d7f86884 100644
--- a/test/sequential/test-child-process-execsync.js
+++ b/test/sequential/test-child-process-execsync.js
@@ -48,7 +48,7 @@ var msgBuf = Buffer.from(msg + '\n');
// console.log ends every line with just '\n', even on Windows.
-cmd = `"${process.execPath}" -e "console.log(\'${msg}\');"`;
+cmd = `"${process.execPath}" -e "console.log('${msg}');"`;
ret = execSync(cmd);