summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJacek PospychaƂa <jacek.pospychala@currency-one.com>2018-07-03 19:02:59 +0200
committerRich Trott <rtrott@gmail.com>2018-07-05 10:16:58 -0700
commita64b2f2b94c018dcfaf2ddb9adffd6dea5082919 (patch)
tree1bd0e5a05f1f369a38ba6fe347154a4b4f619aca /test
parentd4966a15cb944a07caa9ca653565fb5c585f8f0d (diff)
downloadandroid-node-v8-a64b2f2b94c018dcfaf2ddb9adffd6dea5082919.tar.gz
android-node-v8-a64b2f2b94c018dcfaf2ddb9adffd6dea5082919.tar.bz2
android-node-v8-a64b2f2b94c018dcfaf2ddb9adffd6dea5082919.zip
test: remove unnecessary string literals
PR-URL: https://github.com/nodejs/node/pull/21638 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-vm-function-declaration.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-vm-function-declaration.js b/test/parallel/test-vm-function-declaration.js
index 0f6f19b13e..6405babfa7 100644
--- a/test/parallel/test-vm-function-declaration.js
+++ b/test/parallel/test-vm-function-declaration.js
@@ -37,8 +37,8 @@ code += '(function(){return this})().b;\n';
const res = vm.runInContext(code, o, 'test');
-assert.strictEqual(typeof res, 'function', 'result should be function');
-assert.strictEqual(res.name, 'b', 'res should be named b');
-assert.strictEqual(typeof o.a, 'function', 'a should be function');
-assert.strictEqual(typeof o.b, 'function', 'b should be function');
-assert.strictEqual(res, o.b, 'result should be global b function');
+assert.strictEqual(typeof res, 'function');
+assert.strictEqual(res.name, 'b');
+assert.strictEqual(typeof o.a, 'function');
+assert.strictEqual(typeof o.b, 'function');
+assert.strictEqual(res, o.b);