From eebe484d04e0dd0eece518a037b36958ff97d388 Mon Sep 17 00:00:00 2001 From: Grant Snodgrass Date: Thu, 25 Jan 2018 13:40:49 -0500 Subject: [PATCH] docs: fix wrong `.property` chaining examples (#1130) --- lib/chai/core/assertions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. *