diff --git a/lib/chai/core/assertions.js b/lib/chai/core/assertions.js index 8e221aca8..dd67ba336 100644 --- a/lib/chai/core/assertions.js +++ b/lib/chai/core/assertions.js @@ -965,8 +965,8 @@ module.exports = function (chai, _) { * Asserts that the target's `length` property has * the expected value. * - * expect([ 1, 2, 3]).to.have.length(3); - * expect('foobar').to.have.length(6); + * expect([ 1, 2, 3]).to.have.lengthOf(3); + * expect('foobar').to.have.lengthOf(6); * * @name lengthOf * @param {Number} length