0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Ruben Bridgewater e33f773d4f
assert: implement assert.match() and assert.doesNotMatch()
This adds a new functionality to the assertion module: a dedicated
check for regular expressions. So far it's possible to use
`assert.ok(regexp.test(string))`. This is not ideal though when it
comes to the error message, since it's not possible to know how
either of the input values look like. It's just known that the
assertion failed.
This allows to pass through the regular expression and the input
string. The string is then matched against the regular expression
and reports a expressive error message in case of a failure.

PR-URL: https://github.com/nodejs/node/pull/30929
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2020-01-01 18:44:31 +01:00
..
api assert: implement assert.match() and assert.doesNotMatch() 2020-01-01 18:44:31 +01:00
api_assets doc: allow <code> in header elements 2019-12-26 21:31:52 -08:00
changelogs 2019-12-18, Version 13.5.0 (Current) 2019-12-18 13:51:03 -05:00
guides doc: de-duplicate security release processes 2019-12-31 09:44:25 -08:00
.eslintrc.yaml
abi_version_registry.json src: update NODE_MODULE_VERSION to 81 2019-11-08 15:46:34 +01:00
first_timer_badge.png
full-white-stripe.jpg
node.1 doc: add --inspect-publish-uid man page entry 2019-12-25 23:35:13 -05:00
offboarding.md doc: use consistent indenting for unordered list items 2019-09-03 20:55:39 -07:00
onboarding-extras.md doc: add blanks around code fences 2019-08-31 15:31:13 -07:00
onboarding.md
osx_installer_logo.png
releases.md doc: update signature algorithm in release doc 2019-12-02 06:26:30 +01:00
STYLE_GUIDE.md doc: add "Be direct." to the style guide 2019-12-15 13:16:56 -08:00
template.html doc: specify display=fallback for Google Fonts 2019-09-26 22:46:34 -07:00
thin-white-stripe.jpg