Commit 7f04377
test: improve code in test-http-host-headers
* use common.fail to handle errors
* remove console.log
* use arrow functions
PR-URL: #10830
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 66c57a2 commit 7f04377Copy full SHA for 7f04377
File tree
Expand file treeCollapse file tree
1 file changed
+12
-25
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+12
-25
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-host-headers.js
Copy file name to clipboard+12-25Lines changed: 12 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | 8 | |
10 | 9 | |
11 | 10 | |
| ||
14 | 13 | |
15 | 14 | |
16 | 15 | |
17 | | - |
18 | 16 | |
19 | 17 | |
20 | 18 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | 19 | |
26 | 20 | |
27 | 21 | |
| ||
30 | 24 | |
31 | 25 | |
32 | 26 | |
33 | | - |
34 | 27 | |
35 | 28 | |
36 | 29 | |
37 | 30 | |
38 | 31 | |
39 | 32 | |
40 | | - |
41 | | - |
| 33 | + |
42 | 34 | |
43 | 35 | |
44 | 36 | |
45 | 37 | |
46 | 38 | |
47 | | - |
48 | | - |
| 39 | + |
49 | 40 | |
50 | | - |
| 41 | + |
51 | 42 | |
52 | 43 | |
53 | 44 | |
54 | 45 | |
55 | 46 | |
56 | | - |
57 | | - |
| 47 | + |
58 | 48 | |
59 | | - |
| 49 | + |
60 | 50 | |
61 | 51 | |
62 | 52 | |
63 | 53 | |
64 | 54 | |
65 | | - |
66 | | - |
| 55 | + |
67 | 56 | |
68 | | - |
| 57 | + |
69 | 58 | |
70 | 59 | |
71 | 60 | |
72 | 61 | |
73 | 62 | |
74 | | - |
75 | | - |
| 63 | + |
76 | 64 | |
77 | | - |
| 65 | + |
78 | 66 | |
79 | 67 | |
80 | 68 | |
81 | 69 | |
82 | 70 | |
83 | | - |
84 | | - |
| 71 | + |
85 | 72 | |
86 | | - |
| 73 | + |
87 | 74 | |
88 | 75 | |
0 commit comments