test: refactor test-util-inspect · nodejs/node@51c8fe0 · GitHub
Skip to content

Commit 51c8fe0

Browse files
Trottaddaleax
authored andcommitted
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 e2e51c5 commit 51c8fe0

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

test/parallel/test-util-inspect.js

Lines changed: 22 additions & 17 deletions

0 commit comments

Comments
 (0)