forked from nodejscn/node-api-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
330 changed files
with
3,165 additions
and
1,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- YAML | ||
added: v12.16.0 | ||
--> | ||
|
||
* `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. | ||
|
||
```js | ||
const assert = require('assert').strict; | ||
assert.doesNotMatch('I will fail', /fail/); | ||
// AssertionError [ERR_ASSERTION]: The input was expected to not match the ... | ||
assert.doesNotMatch(123, /pass/); | ||
// AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. | ||
assert.doesNotMatch('I will pass', /different/); | ||
// OK | ||
``` | ||
|
||
If the values do match, or if the `string` argument is of another type than | ||
`string`, an [`AssertionError`][] is thrown with a `message` property set equal | ||
to the value of the `message` parameter. If the `message` parameter is | ||
undefined, a default error message is assigned. If the `message` parameter is an | ||
instance of an [`Error`][] then it will be thrown instead of the | ||
[`AssertionError`][]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.