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