Commit 70633f9
test: refactor test-util-inspect
* Handle a rejected Promise as that is expected to cause the process to
exit in a future version of Node.js. (Currently, it emits a warning.)
* Remove unneeded escaping in regexps
* Replace template strings with strings where there is no variable
substitution.
* A few minor readability changes (whitespace).
PR-URL: #9804
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 4c2ad8c commit 70633f9Copy full SHA for 70633f9
File tree
Expand file treeCollapse file tree
1 file changed
+22
-17
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+22
-17
lines changedOpen diff view settings
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+22-17Lines changed: 22 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
143 | 143 | |
144 | 144 | |
145 | 145 | |
146 | | - |
147 | | - |
| 146 | + |
| 147 | + |
148 | 148 | |
149 | 149 | |
150 | 150 | |
151 | | - |
| 151 | + |
152 | 152 | |
153 | 153 | |
154 | 154 | |
| ||
168 | 168 | |
169 | 169 | |
170 | 170 | |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
177 | 175 | |
178 | 176 | |
179 | 177 | |
180 | 178 | |
181 | 179 | |
182 | | - |
183 | | - |
| 180 | + |
| 181 | + |
184 | 182 | |
185 | 183 | |
186 | 184 | |
187 | | - |
| 185 | + |
188 | 186 | |
189 | 187 | |
190 | 188 | |
| ||
208 | 206 | |
209 | 207 | |
210 | 208 | |
211 | | - |
212 | | - |
| 209 | + |
| 210 | + |
213 | 211 | |
214 | 212 | |
215 | 213 | |
| ||
696 | 694 | |
697 | 695 | |
698 | 696 | |
699 | | - |
| 697 | + |
| 698 | + |
| 699 | + |
| 700 | + |
| 701 | + |
| 702 | + |
| 703 | + |
| 704 | + |
700 | 705 | |
701 | 706 | |
702 | 707 | |
| ||
831 | 836 | |
832 | 837 | |
833 | 838 | |
834 | | - |
| 839 | + |
835 | 840 | |
836 | 841 | |
837 | 842 | |
| ||
847 | 852 | |
848 | 853 | |
849 | 854 | |
850 | | - |
| 855 | + |
851 | 856 | |
852 | 857 | |
853 | 858 | |
|
0 commit comments