21 lines
423 B
JavaScript
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);
|
|
}; |