Merge pull request #1157 from chaijs/fix-docs-example

docs: fix bad `.string` example
This commit is contained in:
Jérémie Astori 2018-05-20 00:17:08 -04:00 committed by GitHub
commit 297c71a992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1509 additions and 845 deletions

View file

@ -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

File diff suppressed because it is too large Load diff