test: use regex error checks in test-util-format · nodejs/node@784102f · GitHub
Skip to content

Commit 784102f

Browse files
superwoodsaddaleax
authored andcommitted
test: use regex error checks in test-util-format
Replace constructor with regular expression for second argument to assert.throws() in test-util-format. PR-URL: #14299 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent f9b292c commit 784102f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/parallel/test-util-format.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)