Skip to content

Commit

Permalink
assert: graduate assert.match and assert.doesNotMatch
Browse files Browse the repository at this point in the history
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38111
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
jasnell committed Apr 8, 2021
1 parent bc531d1 commit 944a956
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -876,19 +876,18 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
added:
- v13.6.0
- v12.16.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/38111
description: This API is no longer experimental.
-->

* `string` {string}
* `regexp` {RegExp}
* `message` {string|Error}

> Stability: 1 - Experimental
Expects the `string` input not to match the regular expression.

This feature is currently experimental and the name might change or it might be
completely removed again.

```mjs
import assert from 'assert/strict';

Expand Down Expand Up @@ -1398,19 +1397,18 @@ let err;
added:
- v13.6.0
- v12.16.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/38111
description: This API is no longer experimental.
-->

* `string` {string}
* `regexp` {RegExp}
* `message` {string|Error}

> Stability: 1 - Experimental
Expects the `string` input to match the regular expression.

This feature is currently experimental and the name might change or it might be
completely removed again.

```mjs
import assert from 'assert/strict';

Expand Down

0 comments on commit 944a956

Please sign in to comment.