Commit b496374
test: improve code in test-domain-multi
* use common.mustCall to validate functions executions
* use common.fail to control error
* remove unnecessary variables
* remove unnecessary assertions
* remove console.log and console.error
* use arrow functions
PR-URL: #10798
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 46bbabe commit b496374Copy full SHA for b496374
File tree
Expand file treeCollapse file tree
1 file changed
+11
-34
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+11
-34
lines changedOpen diff view settings
Collapse file
test/parallel/test-domain-multi.js
Copy file name to clipboard+11-34Lines changed: 11 additions & 34 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
| 4 | + |
6 | 5 | |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
| 6 | + |
12 | 7 | |
13 | 8 | |
14 | 9 | |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | 10 | |
| 11 | + |
21 | 12 | |
22 | | - |
23 | | - |
| 13 | + |
24 | 14 | |
25 | 15 | |
26 | 16 | |
| ||
31 | 21 | |
32 | 22 | |
33 | 23 | |
34 | | - |
35 | | - |
36 | | - |
| 24 | + |
37 | 25 | |
38 | 26 | |
39 | 27 | |
40 | 28 | |
41 | 29 | |
42 | 30 | |
43 | | - |
| 31 | + |
44 | 32 | |
45 | 33 | |
46 | 34 | |
47 | 35 | |
48 | | - |
| 36 | + |
49 | 37 | |
50 | 38 | |
51 | 39 | |
52 | | - |
| 40 | + |
53 | 41 | |
54 | | - |
| 42 | + |
55 | 43 | |
56 | 44 | |
57 | 45 | |
58 | 46 | |
59 | | - |
60 | | - |
| 47 | + |
61 | 48 | |
62 | 49 | |
63 | 50 | |
64 | 51 | |
65 | 52 | |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
| 53 | + |
77 | 54 | |
0 commit comments