Merge branch 'rullopat-greater-than-or-equal-less-than-or-equal-matchers'
- Merges #1049 - Fixes #1013
This commit is contained in:
@@ -89,6 +89,8 @@ getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
|
||||
'toBeDefined',
|
||||
'toBeFalsy',
|
||||
'toBeGreaterThan',
|
||||
'toBeGreaterThanOrEqual',
|
||||
'toBeLessThanOrEqual',
|
||||
'toBeLessThan',
|
||||
'toBeNaN',
|
||||
'toBeNull',
|
||||
@@ -2977,6 +2979,21 @@ getJasmineRequireObj().toBeGreaterThan = function() {
|
||||
};
|
||||
|
||||
|
||||
getJasmineRequireObj().toBeGreaterThanOrEqual = function() {
|
||||
|
||||
function toBeGreaterThanOrEqual() {
|
||||
return {
|
||||
compare: function(actual, expected) {
|
||||
return {
|
||||
pass: actual >= expected
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return toBeGreaterThanOrEqual;
|
||||
};
|
||||
|
||||
getJasmineRequireObj().toBeLessThan = function() {
|
||||
function toBeLessThan() {
|
||||
return {
|
||||
@@ -2991,6 +3008,21 @@ getJasmineRequireObj().toBeLessThan = function() {
|
||||
|
||||
return toBeLessThan;
|
||||
};
|
||||
getJasmineRequireObj().toBeLessThanOrEqual = function() {
|
||||
function toBeLessThanOrEqual() {
|
||||
return {
|
||||
|
||||
compare: function(actual, expected) {
|
||||
return {
|
||||
pass: actual <= expected
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return toBeLessThanOrEqual;
|
||||
};
|
||||
|
||||
getJasmineRequireObj().toBeNaN = function(j$) {
|
||||
|
||||
function toBeNaN() {
|
||||
|
||||
Reference in New Issue
Block a user