2.3.0 / 2015-04-26
Added ownPropertyDescriptor
assertion:
expect('test').to.have.ownPropertyDescriptor('length');
expect('test').to.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 4 });
expect('test').not.to.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 3 });
expect('test').ownPropertyDescriptor('length').to.have.property('enumerable', false);
expect('test').ownPropertyDescriptor('length').to.have.keys('value');
Community Contributions
Code Features & Fixes
- #408 Add
ownPropertyDescriptor
assertion.
By @ljharb - #422 Improve ownPropertyDescriptor
tests.
By @ljharb