Commit 6db76da
test: refactor test-cluster-send-handle-twice.js
- `var` --> `const` as applicable
- `assert.equal` --> `assert.strictEqual`
- `assert(false, ..)` --> `common.fail()`
- `common.mustCall` for functions that need to be called exactly once
- modified an `assert(!signal, 'Worker exited by a signal');` call to
`assert.strictEqual(signal, null);` call as that made more sense
PR-URL: #10049
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 19b314e commit 6db76daCopy full SHA for 6db76da
File tree
Expand file treeCollapse file tree
1 file changed
+14
-14
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+14
-14
lines changedOpen diff view settings
Collapse file
test/parallel/test-cluster-send-handle-twice.js
Copy file name to clipboard+14-14Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | | - |
16 | | - |
| 14 | + |
| 15 | + |
| 16 | + |
17 | 17 | |
18 | | - |
19 | | - |
| 18 | + |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | | - |
| 22 | + |
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
29 | | - |
| 28 | + |
| 29 | + |
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | 35 | |
36 | 36 | |
0 commit comments