e346e7dcc1
Since we want the user to be able to pass a negative comparison function, the extra layer of wrapping is now needed
14 lines
217 B
JavaScript
14 lines
217 B
JavaScript
getJasmineRequireObj().toBeFalsy = function() {
|
|
function toBeFalsy() {
|
|
return {
|
|
compare: function(actual) {
|
|
return {
|
|
pass: !!!actual
|
|
};
|
|
}
|
|
};
|
|
}
|
|
|
|
return toBeFalsy;
|
|
};
|