Skip to content
Browse files

test: switch arguments in strictEqual

In the `test/parallel/test-vm-create-and-run-in-context.js`
test the actual and expected arguments in the `assert.strictEqual()`
call on line 32 are in the wrong order and they have to be switched

PR-URL: #24141
Reviewed-By: Anna Henningsen <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Gireesh Punathil <>
Reviewed-By: Ruben Bridgewater <>
Reviewed-By: Trivikram Kamat <>
  • Loading branch information...
mthpvg authored and MylesBorins committed Nov 6, 2018
1 parent 8f2bdac commit f46fa9072a3e9c6a72ed01e8bc7b0bd6ee70619b
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-vm-create-and-run-in-context.js
@@ -29,7 +29,7 @@ const vm = require('vm');
// Run in a new empty context
let context = vm.createContext();
let result = vm.runInContext('"passed";', context);
assert.strictEqual('passed', result);
assert.strictEqual(result, 'passed');

// Create a new pre-populated context
context = vm.createContext({ 'foo': 'bar', 'thing': 'lala' });

0 comments on commit f46fa90

Please sign in to comment.
You can’t perform that action at this time.