UNPKG

warriorjs-engine

Version:
14 lines (11 loc) 294 B
function chaiCaptive(chai) { const Assertion = chai.Assertion; Assertion.addProperty('captive', function getter() { this.assert( this._obj.isCaptive(), 'expected #{this} to be captive', 'expected #{this} not to be captive' ); }); } export default chaiCaptive;