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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/fixtures/not-main-module.js +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. |
21 | 21 |
|
22 | 22 | 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
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 number | Diff line number | Diff line change |
|---|
@@ -11,18 +11,18 @@ let triggerAsyncId1; |
11 | 11 | process.nextTick(() => { |
12 | 12 | process.nextTick(() => { |
13 | 13 | triggerAsyncId1 = triggerAsyncId(); |
| 14 | + // Async resources having different causal ancestry |
| 15 | + // should have different triggerAsyncIds |
14 | 16 | assert.notStrictEqual( |
15 | 17 | triggerAsyncId0, |
16 | | - triggerAsyncId1, |
17 | | - 'Async resources having different causal ancestry ' + |
18 | | - 'should have different triggerAsyncIds'); |
| 18 | + triggerAsyncId1); |
19 | 19 | }); |
20 | 20 | process.nextTick(() => { |
21 | 21 | const triggerAsyncId2 = triggerAsyncId(); |
| 22 | + // Async resources having the same causal ancestry |
| 23 | + // should have the same triggerAsyncId |
22 | 24 | assert.strictEqual( |
23 | 25 | triggerAsyncId1, |
24 | | - triggerAsyncId2, |
25 | | - 'Async resources having the same causal ancestry ' + |
26 | | - 'should have the same triggerAsyncId'); |
| 26 | + triggerAsyncId2); |
27 | 27 | }); |
28 | 28 | }); |