Commit da57213
test: improve the code in test-process-hrtime
* use const instead of var
* use assert.strictEqual instead of assert.equal and plain assert
* use arrow functions
* swap assertions arguments to match the standard
* validate the error for assert.throws
PR-URL: #10667
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michal Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 17d9a73 commit da57213Copy full SHA for da57213
File tree
Expand file treeCollapse file tree
1 file changed
+7
-7
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+7
-7
lines changedOpen diff view settings
Collapse file
test/parallel/test-process-hrtime.js
Copy file name to clipboardExpand all lines: test/parallel/test-process-hrtime.js+7-7Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
16 | 16 | |
17 | | - |
| 17 | + |
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
|
0 commit comments