Skip to content

Commit

Permalink
docs: fix wrong .property chaining examples (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeber authored and keithamus committed Jan 25, 2018
1 parent e354bee commit eebe484
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/chai/core/assertions.js
Expand Up @@ -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});
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit eebe484

Please sign in to comment.