mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
Merge pull request #1157 from chaijs/fix-docs-example
docs: fix bad `.string` example
This commit is contained in:
commit
297c71a992
2 changed files with 1509 additions and 845 deletions
|
@ -2189,8 +2189,8 @@ module.exports = function (chai, _) {
|
||||||
* message to show when the assertion fails. The message can also be given as
|
* message to show when the assertion fails. The message can also be given as
|
||||||
* the second argument to `expect`.
|
* the second argument to `expect`.
|
||||||
*
|
*
|
||||||
* expect('foobar').to.have.string(/taco/, 'nooo why fail??');
|
* expect('foobar').to.have.string('taco', 'nooo why fail??');
|
||||||
* expect('foobar', 'nooo why fail??').to.have.string(/taco/);
|
* expect('foobar', 'nooo why fail??').to.have.string('taco');
|
||||||
*
|
*
|
||||||
* @name string
|
* @name string
|
||||||
* @param {String} str
|
* @param {String} str
|
||||||
|
|
2350
package-lock.json
generated
2350
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue