Commit 5ce2ac8
test: refactor test-repl-tab-complete
* Add check for `data` object in tab completion callback
* Replace `.indexOf()` with `.startsWith()` where appropriate
PR-URL: #10879
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 5d33c96 commit 5ce2ac8Copy full SHA for 5ce2ac8
File tree
Expand file treeCollapse file tree
1 file changed
+3
-6
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+3
-6
lines changedOpen diff view settings
Collapse file
test/parallel/test-repl-tab-complete.js
Copy file name to clipboardExpand all lines: test/parallel/test-repl-tab-complete.js+3-6Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
231 | 231 | |
232 | 232 | |
233 | 233 | |
| 234 | + |
234 | 235 | |
235 | 236 | |
236 | 237 | |
| ||
307 | 308 | |
308 | 309 | |
309 | 310 | |
310 | | - |
311 | | - |
312 | | - |
| 311 | + |
313 | 312 | |
314 | 313 | |
315 | 314 | |
| ||
339 | 338 | |
340 | 339 | |
341 | 340 | |
342 | | - |
343 | | - |
344 | | - |
| 341 | + |
345 | 342 | |
346 | 343 | |
347 | 344 | |
|
0 commit comments