UNPKG

warriorjs-engine

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