Skip to content

Commit

Permalink
Merge pull request #1157 from chaijs/fix-docs-example
Browse files Browse the repository at this point in the history
docs: fix bad `.string` example
  • Loading branch information
astorije committed May 20, 2018
2 parents 1021f40 + 4584706 commit 297c71a
Show file tree
Hide file tree
Showing 2 changed files with 1,511 additions and 847 deletions.
4 changes: 2 additions & 2 deletions lib/chai/core/assertions.js
Expand Up @@ -2189,8 +2189,8 @@ module.exports = function (chai, _) {
* message to show when the assertion fails. The message can also be given as
* the second argument to `expect`.
*
* expect('foobar').to.have.string(/taco/, 'nooo why fail??');
* expect('foobar', 'nooo why fail??').to.have.string(/taco/);
* expect('foobar').to.have.string('taco', 'nooo why fail??');
* expect('foobar', 'nooo why fail??').to.have.string('taco');
*
* @name string
* @param {String} str
Expand Down

0 comments on commit 297c71a

Please sign in to comment.