test: use assert regexp in tls no cert test · nodejs/node@d743783 · GitHub
Skip to content

Commit d743783

Browse files
vieiraarturgMylesBorins
authored andcommitted
test: use assert regexp in tls no cert test
Replace the `assert.throws` second argument from a Type to a `RegExp` matching the entire error message. Error message changes are `semver-major`, so we assert their content. PR-URL: #12891 Refs: #12603 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 29d35d0 commit d743783

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/parallel/test-tls-no-cert-required.js

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)