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
around.

PR-URL: https://github.com/nodejs/node/pull/24141
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Mathieu Pavageau 2018-11-06 14:33:10 +00:00 committed by Gireesh Punathil
parent e1c4e918c3
commit 8272e7fba4

View File

@ -29,7 +29,7 @@ const vm = require('vm');
// Run in a new empty context // Run in a new empty context
let context = vm.createContext(); let context = vm.createContext();
let result = vm.runInContext('"passed";', context); let result = vm.runInContext('"passed";', context);
assert.strictEqual('passed', result); assert.strictEqual(result, 'passed');
// Create a new pre-populated context // Create a new pre-populated context
context = vm.createContext({ 'foo': 'bar', 'thing': 'lala' }); context = vm.createContext({ 'foo': 'bar', 'thing': 'lala' });