Commit cf875d1
test: improve test-fs-null-bytes
* use const instead of var
* use common.mustCall to control functions execution
* use assert.strictEqual instead of assert.equal
* use arrow functions
* remove console.error
PR-URL: #10521
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 59196af commit cf875d1Copy full SHA for cf875d1
File tree
Expand file treeCollapse file tree
1 file changed
+7
-8
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+7
-8
lines changedOpen diff view settings
Collapse file
test/parallel/test-fs-null-bytes.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-null-bytes.js+7-8Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
9 | | - |
| 7 | + |
| 8 | + |
| 9 | + |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
16 | | - |
| 15 | + |
17 | 16 | |
18 | 17 | |
19 | 18 | |
| ||
51 | 50 | |
52 | 51 | |
53 | 52 | |
54 | | - |
| 53 | + |
55 | 54 | |
56 | | - |
| 55 | + |
57 | 56 | |
0 commit comments