From 021dd5404ce6d83636d50c6dfad0364df07a5611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Pospycha=C5=82a?= Date: Tue, 3 Jul 2018 19:02:59 +0200 Subject: [PATCH] test: remove unnecessary string literals PR-URL: https://github.com/nodejs/node/pull/21638 Reviewed-By: Rich Trott Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Michael Dawson --- test/parallel/test-vm-function-declaration.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-vm-function-declaration.js b/test/parallel/test-vm-function-declaration.js index 0f6f19b13ebcf1..6405babfa78148 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);