Add toBeGreatThanOrEqual and toBeLessThanOrEqual matchers
- Implements issue #1013
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
getJasmineRequireObj().toBeLessThanOrEqual = function() {
|
||||
function toBeLessThanOrEqual() {
|
||||
return {
|
||||
|
||||
compare: function(actual, expected) {
|
||||
return {
|
||||
pass: actual <= expected
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return toBeLessThanOrEqual;
|
||||
};
|
||||
Reference in New Issue
Block a user