Commit 6c032a8
test: replace util with backtick strings
Now that we have backticks we no longer need to use util.format
to template strings!
This commit was inspired by #3324, and it replaces instances of
util.format with backtick strings in a number of tests
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #33591 parent ab03635 commit 6c032a8Copy full SHA for 6c032a8
File tree
Expand file treeCollapse file tree
4 files changed
+16
-18
lines changedOpen diff view settings
Filter options
- test
- parallel
- sequential
Expand file treeCollapse file tree
4 files changed
+16
-18
lines changedOpen diff view settings
Collapse file
test/parallel/test-child-process-spawnsync-input.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawnsync-input.js+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
8 | 7 | |
| ||
15 | 14 | |
16 | 15 | |
17 | 16 | |
18 | | - |
| 17 | + |
19 | 18 | |
20 | 19 | |
21 | 20 | |
|
Collapse file
test/parallel/test-child-process-spawnsync.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawnsync.js+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
| 2 | + |
| 3 | + |
4 | 4 | |
5 | | - |
| 5 | + |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
|
Collapse file
test/parallel/test-repl-setprompt.js
Copy file name to clipboardExpand all lines: test/parallel/test-repl-setprompt.js+5-6Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
7 | 6 | |
8 | 7 | |
9 | 8 | |
| ||
19 | 18 | |
20 | 19 | |
21 | 20 | |
22 | | - |
| 21 | + |
23 | 22 | |
24 | 23 | |
25 | 24 | |
|
Collapse file
test/sequential/test-child-process-execsync.js
Copy file name to clipboardExpand all lines: test/sequential/test-child-process-execsync.js+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
| ||
13 | 12 | |
14 | 13 | |
15 | 14 | |
| 15 | + |
16 | 16 | |
17 | 17 | |
18 | | - |
19 | | - |
| 18 | + |
20 | 19 | |
21 | 20 | |
22 | 21 | |
| ||
38 | 37 | |
39 | 38 | |
40 | 39 | |
41 | | - |
| 40 | + |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
|
0 commit comments