Files
jasmine/src/core/matchers/toBeLessThan.js
Gregg Van Hove 9cb2f06aa6 Add a first pass at jsdoc.
[##130415655] #596
2017-03-21 11:36:41 -07:00

23 lines
500 B
JavaScript

getJasmineRequireObj().toBeLessThan = function() {
/**
* {@link expect} the actual value to be less than the expected value.
* @function
* @name matchers#toBeLessThan
* @param {Number} expected - The expected value to compare against.
* @example
* expect(result).toBeLessThan(0);
*/
function toBeLessThan() {
return {
compare: function(actual, expected) {
return {
pass: actual < expected
};
}
};
}
return toBeLessThan;
};