diff options
author | Mathieu Pavageau <mth.pvg@gmail.com> | 2018-11-06 14:33:10 +0000 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2018-11-09 13:38:36 +0530 |
commit | 8272e7fba46688deabcedb284da384e12030906c (patch) | |
tree | 992661647b64f460fa36ab7470965f3530386981 /test/parallel/test-vm-create-and-run-in-context.js | |
parent | e1c4e918c37da28debfb730987c36d6e5b053289 (diff) | |
download | node-new-8272e7fba46688deabcedb284da384e12030906c.tar.gz |
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>
Diffstat (limited to 'test/parallel/test-vm-create-and-run-in-context.js')
-rw-r--r-- | test/parallel/test-vm-create-and-run-in-context.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-vm-create-and-run-in-context.js b/test/parallel/test-vm-create-and-run-in-context.js index 8f4ce72c50..bd746cf2df 100644 --- a/test/parallel/test-vm-create-and-run-in-context.js +++ b/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' }); |