test: fix vm assertion actual and expected order

PR-URL: https://github.com/nodejs/node/pull/50371
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
This commit is contained in:
Chengzhong Wu authored and Michaël Zasso committed 2023-11-11 20:38:25 +01:00
1 parent 893024cb7c
commit aa86c78a9c
1 file changed
+3 -3
@@ -40,7 +40,7 @@ async function test() {
});
const result = s.runInThisContext();
assert.strictEqual(foo.namespace, await result);
assert.strictEqual(await result, foo.namespace);
}
{
@@ -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;
}
@@ -68,7 +68,7 @@ async function test() {
});
const result = s.runInThisContext();
assert.strictEqual(foo.namespace, await result);
assert.strictEqual(await result, foo.namespace);
}
}