diff --git a/lib/chai/core/assertions.js b/lib/chai/core/assertions.js index 14b56cf53..a7ed3376e 100644 --- a/lib/chai/core/assertions.js +++ b/lib/chai/core/assertions.js @@ -149,7 +149,8 @@ module.exports = function (chai, _) { * Object.prototype.b = 2; * * expect({a: 1}).to.have.own.property('a'); - * expect({a: 1}).to.have.property('b').but.not.own.property('b'); + * expect({a: 1}).to.have.property('b'); + * expect({a: 1}).to.not.have.own.property('b'); * * expect({a: 1}).to.own.include({a: 1}); * expect({a: 1}).to.include({b: 2}).but.not.own.include({b: 2}); @@ -1676,7 +1677,8 @@ module.exports = function (chai, _) { * * expect({a: 1}).to.have.own.property('a'); * expect({a: 1}).to.have.own.property('a', 1); - * expect({a: 1}).to.have.property('b').but.not.own.property('b'); + * expect({a: 1}).to.have.property('b'); + * expect({a: 1}).to.not.have.own.property('b'); * * `.deep` and `.own` can be combined. *