hamjest
Version:
A library of composable matchers for defining meaningful and readable assertions in JavaScript.
18 lines (14 loc) • 326 B
JavaScript
;
const _create = require('lodash/create');
const Matcher = require('./Matcher');
function falsy() {
return _create(new Matcher(), {
matches: function (actualValue) {
return !actualValue;
},
describeTo: function (description) {
description.append('falsy value');
}
});
}
module.exports = falsy;