Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f46fa90

Browse filesBrowse files
mthpvgMylesBorins
authored andcommitted
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: #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>
1 parent 8f2bdac commit f46fa90
Copy full SHA for f46fa90

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-vm-create-and-run-in-context.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-vm-create-and-run-in-context.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const vm = require('vm');
2929
// Run in a new empty context
3030
let context = vm.createContext();
3131
let result = vm.runInContext('"passed";', context);
32-
assert.strictEqual('passed', result);
32+
assert.strictEqual(result, 'passed');
3333

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.