mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
docs: fix wrong .property
chaining examples (#1130)
This commit is contained in:
parent
e354beeb17
commit
eebe484d04
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue