Skip to content

Commit 021dd54

Browse files
jpospychalatargos
authored andcommitted
test: remove unnecessary string literals
PR-URL: #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>
1 parent c88af23 commit 021dd54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-vm-function-declaration.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ code += '(function(){return this})().b;\n';
3737

3838
const res = vm.runInContext(code, o, 'test');
3939

40-
assert.strictEqual(typeof res, 'function', 'result should be function');
41-
assert.strictEqual(res.name, 'b', 'res should be named b');
42-
assert.strictEqual(typeof o.a, 'function', 'a should be function');
43-
assert.strictEqual(typeof o.b, 'function', 'b should be function');
44-
assert.strictEqual(res, o.b, 'result should be global b function');
40+
assert.strictEqual(typeof res, 'function');
41+
assert.strictEqual(res.name, 'b');
42+
assert.strictEqual(typeof o.a, 'function');
43+
assert.strictEqual(typeof o.b, 'function');
44+
assert.strictEqual(res, o.b);

0 commit comments

Comments
 (0)