Skip to content

Commit

Permalink
test: fix vm assertion actual and expected order
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
legendecas authored and targos committed Nov 11, 2023
1 parent 893024c commit aa86c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-vm-module-dynamic-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function test() {
});

const result = s.runInThisContext();
assert.strictEqual(foo.namespace, await result);
assert.strictEqual(await result, foo.namespace);
}

{
Expand All @@ -53,7 +53,7 @@ async function test() {
});
await m.link(common.mustNotCall());
await m.evaluate();
assert.strictEqual(foo.namespace, await globalThis.fooResult);
assert.strictEqual(await globalThis.fooResult, foo.namespace);
delete globalThis.fooResult;
}

Expand All @@ -68,7 +68,7 @@ async function test() {
});

const result = s.runInThisContext();
assert.strictEqual(foo.namespace, await result);
assert.strictEqual(await result, foo.namespace);
}
}

Expand Down

0 comments on commit aa86c78

Please sign in to comment.