We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.string
1 parent 651fc96 commit 4584706Copy full SHA for 4584706
1 file changed
lib/chai/core/assertions.js
@@ -2189,8 +2189,8 @@ module.exports = function (chai, _) {
2189
* message to show when the assertion fails. The message can also be given as
2190
* the second argument to `expect`.
2191
*
2192
- * expect('foobar').to.have.string(/taco/, 'nooo why fail??');
2193
- * 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');
2194
2195
* @name string
2196
* @param {String} str
0 commit comments