mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user