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

23 lines
509 B
JavaScript

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