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