Skip to content

Commit

Permalink
docs: fix bad .string example
Browse files Browse the repository at this point in the history
  • Loading branch information
meeber committed May 10, 2018
1 parent 651fc96 commit 4584706
Showing 1 changed file with 2 additions and 2 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 4584706

Please sign in to comment.