Skip to content

Commit 021dd54

Browse files
jpospychalatargos
authored andcommitted
test: remove unnecessary string literals
PR-URL: #21638 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
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)