Commit 7727ba1
test: lint and refactor to avoid autocrlf issue
The test was failing after adding 'use strict' because the windows CI
uses the autocrlf option of git which converts \r into \r\n on checkout.
Refactored the test to not read itself anymore and create a temp file on
the fly instead to avoid this line-ending issue.
PR-URL: #2494
Reviewed-By: Joao Reis <reis@janeasystems.com>1 parent f75d546 commit 7727ba1Copy full SHA for 7727ba1
File tree
Expand file treeCollapse file tree
2 files changed
+20
-14
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
2 files changed
+20
-14
lines changedOpen diff view settings
Collapse file
-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
Collapse file
test/parallel/test-fs-non-number-arguments-throw.js
Copy file name to clipboard+20-13Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
4 | | - |
| 1 | + |
5 | 2 | |
6 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
7 | 8 | |
8 | | - |
9 | | - |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
10 | 18 | |
11 | 19 | |
12 | | - |
13 | | - |
| 20 | + |
| 21 | + |
14 | 22 | |
15 | 23 | |
16 | | - |
17 | | - |
| 24 | + |
| 25 | + |
18 | 26 | |
19 | 27 | |
20 | | - |
21 | | - |
| 28 | + |
22 | 29 | |
23 | 30 | |
24 | 31 | |
0 commit comments