Commit 28a5ce1
test: improve test-http-allow-req-after-204-res
* use const instead of var
* use common.mustCall to control functions execution
* use assert.strictEqual instead of assert.equal
* use arrow functions
PR-URL: #10503
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent c7378c4 commit 28a5ce1Copy full SHA for 28a5ce1
File tree
Expand file treeCollapse file tree
1 file changed
+15
-18
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+15
-18
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-allow-req-after-204-res.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-allow-req-after-204-res.js+15-18Lines changed: 15 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | | - |
13 | | - |
14 | | - |
| 12 | + |
| 13 | + |
| 14 | + |
15 | 15 | |
16 | | - |
17 | 16 | |
18 | 17 | |
19 | | - |
| 18 | + |
20 | 19 | |
21 | 20 | |
22 | | - |
23 | | - |
| 21 | + |
24 | 22 | |
25 | | - |
| 23 | + |
26 | 24 | |
27 | 25 | |
28 | 26 | |
29 | | - |
30 | | - |
| 27 | + |
| 28 | + |
31 | 29 | |
32 | | - |
33 | 30 | |
34 | 31 | |
35 | 32 | |
36 | 33 | |
37 | 34 | |
38 | 35 | |
39 | 36 | |
40 | | - |
| 37 | + |
41 | 38 | |
42 | | - |
| 39 | + |
43 | 40 | |
44 | 41 | |
45 | 42 | |
|
0 commit comments