Added matchers: truthy, falsy, empty and notEmpty
This commit is contained in:
18
src/core/asymmetric_equality/Truthy.js
Normal file
18
src/core/asymmetric_equality/Truthy.js
Normal file
@@ -0,0 +1,18 @@
|
||||
getJasmineRequireObj().Truthy = function(j$) {
|
||||
|
||||
function Truthy() {}
|
||||
|
||||
Truthy.prototype.asymmetricMatch = function(other) {
|
||||
if (other) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
Truthy.prototype.jasmineToString = function() {
|
||||
return '<jasmine.truthy>';
|
||||
};
|
||||
|
||||
return Truthy;
|
||||
};
|
||||
Reference in New Issue
Block a user