Skip to content

Commit 4f116a7

Browse files
lefrogMylesBorins
authored andcommitted
test: swap assert argument order in test-vm-create-and-run-in-context.js
PR-URL: #23525 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 6eea5dc commit 4f116a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ assert.strictEqual('passed', result);
3333

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

3939
// Test updating context
4040
result = vm.runInContext('var foo = 3;', context);
41-
assert.strictEqual(3, context.foo);
42-
assert.strictEqual('lala', context.thing);
41+
assert.strictEqual(context.foo, 3);
42+
assert.strictEqual(context.thing, 'lala');
4343

4444
// https://github.com/nodejs/node/issues/5768
4545
// Run in contextified sandbox without referencing the context

0 commit comments

Comments
 (0)