GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix vm assertion actual and expected order · nodejs/node@099f5cf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-vm-module-dynamic-import.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-vm-module-dynamic-import.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function test() {
4040
});
4141

4242
const result = s.runInThisContext();
43-
assert.strictEqual(foo.namespace, await result);
43+
assert.strictEqual(await result, foo.namespace);
4444
}
4545

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

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

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

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.