Files
hudozka/node_modules/should/lib/ext/bool.js
T
2014-02-12 12:36:59 +04:00

21 lines
423 B
JavaScript

/*!
* Should
* Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
module.exports = function(should, Assertion) {
Assertion.add('true', function() {
this.is.exactly(true)
}, true);
Assertion.add('false', function() {
this.is.exactly(false)
}, true);
Assertion.add('ok', function() {
this.params = { operator: 'to be truthy' };
this.assert(this.obj);
}, true);
};