Skip to content

Commit 099f5cf

Browse files
legendecasUlisesGascon
authored andcommitted
test: fix vm assertion actual and expected order
PR-URL: #50371 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
1 parent 59f7316 commit 099f5cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/parallel/test-vm-module-dynamic-import.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function test(){
4040
});
4141

4242
constresult=s.runInThisContext();
43-
assert.strictEqual(foo.namespace,awaitresult);
43+
assert.strictEqual(awaitresult,foo.namespace);
4444
}
4545

4646
{
@@ -53,7 +53,7 @@ async function test(){
5353
});
5454
awaitm.link(common.mustNotCall());
5555
awaitm.evaluate();
56-
assert.strictEqual(foo.namespace,awaitglobalThis.fooResult);
56+
assert.strictEqual(awaitglobalThis.fooResult,foo.namespace);
5757
deleteglobalThis.fooResult;
5858
}
5959

@@ -68,7 +68,7 @@ async function test(){
6868
});
6969

7070
constresult=s.runInThisContext();
71-
assert.strictEqual(foo.namespace,awaitresult);
71+
assert.strictEqual(awaitresult,foo.namespace);
7272
}
7373
}
7474

0 commit comments

Comments
(0)