added #toBeTrue and #toBeFalse matchers
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
getJasmineRequireObj().toBeFalse = function() {
|
||||
/**
|
||||
* {@link expect} the actual value to be `false`.
|
||||
* @function
|
||||
* @name matchers#toBeFalse
|
||||
* @example
|
||||
* expect(result).toBeFalse();
|
||||
*/
|
||||
function toBeFalse() {
|
||||
return {
|
||||
compare: function(actual) {
|
||||
return {
|
||||
pass: actual === false
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return toBeFalse;
|
||||
};
|
||||
Reference in New Issue
Block a user