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