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: remove string literals for strictEquals/notStrictEquals · nodejs/node@9de6b26

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • fixtures
      • not-main-module.js
    • parallel
      • test-async-wrap-trigger-id.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/fixtures/not-main-module.js‎

Copy file name to clipboardExpand all lines: test/fixtures/not-main-module.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
const assert = require('assert');
23-
assert.notStrictEqual(module, require.main, 'require.main should not == module');
24-
assert.notStrictEqual(module, process.mainModule,
25-
'process.mainModule should not === module');
23+
assert.notStrictEqual(module, require.main);
24+
assert.notStrictEqual(module, process.mainModule);
Collapse file

‎test/parallel/test-async-wrap-trigger-id.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-async-wrap-trigger-id.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ let triggerAsyncId1;
1111
process.nextTick(() => {
1212
process.nextTick(() => {
1313
triggerAsyncId1 = triggerAsyncId();
14+
// Async resources having different causal ancestry
15+
// should have different triggerAsyncIds
1416
assert.notStrictEqual(
1517
triggerAsyncId0,
16-
triggerAsyncId1,
17-
'Async resources having different causal ancestry ' +
18-
'should have different triggerAsyncIds');
18+
triggerAsyncId1);
1919
});
2020
process.nextTick(() => {
2121
const triggerAsyncId2 = triggerAsyncId();
22+
// Async resources having the same causal ancestry
23+
// should have the same triggerAsyncId
2224
assert.strictEqual(
2325
triggerAsyncId1,
24-
triggerAsyncId2,
25-
'Async resources having the same causal ancestry ' +
26-
'should have the same triggerAsyncId');
26+
triggerAsyncId2);
2727
});
2828
});

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.