Commit f45ef44
test: refactor test-http-default-port
- Remove redundant `hasCrypto` checks
- Use `common.mustCall()`
- Use arrow functions
- Deduplicate HTTP & HTTPS code
PR-URL: #17562
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>1 parent ccffbd9 commit f45ef44Copy full SHA for f45ef44
File tree
Expand file treeCollapse file tree
1 file changed
+14
-41
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+14
-41
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-default-port.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-default-port.js+14-41Lines changed: 14 additions & 41 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
38 | | - |
39 | 37 | |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
69 | 43 | |
70 | | - |
| 44 | + |
71 | 45 | |
72 | 46 | |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
77 | 51 | |
78 | 52 | |
79 | 53 | |
80 | | - |
| 54 | + |
81 | 55 | |
82 | | - |
83 | | - |
| 56 | + |
84 | 57 | |
85 | | - |
86 | | - |
| 58 | + |
| 59 | + |
87 | 60 | |
0 commit comments