test: improve test-debug-usage · nodejs/node@188f1d2 · GitHub
Skip to content

Commit 188f1d2

Browse files
TrottMylesBorins
authored andcommitted
test: improve test-debug-usage
test-debug-usage fails if run with `--trace-warnings` because the regular expression checking does not allow for the resulting stack trace from the deprecation warning. The test also only tests two parts of the three-part usage message. Improve the test so that it passes with `--trace-warnings` and verifies all three parts of the usage message. Signed-off-by: Rich Trott <rtrott@gmail.com> PR-URL: #32141 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent bb41383 commit 188f1d2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test/parallel/test-debug-usage.js

Lines changed: 3 additions & 5 deletions

0 commit comments

Comments
 (0)