From 4584706f07d2e43bfeabffd5bffb3e01e574d76e Mon Sep 17 00:00:00 2001 From: Grant Snodgrass Date: Thu, 10 May 2018 22:38:40 +0000 Subject: [PATCH] docs: fix bad `.string` example --- lib/chai/core/assertions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chai/core/assertions.js b/lib/chai/core/assertions.js index 63db67657..f2d2153b8 100644 --- a/lib/chai/core/assertions.js +++ b/lib/chai/core/assertions.js @@ -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