Add anything matcher to match any value that is neither null or undefined

[finish #58117878] Fix #186
This commit is contained in:
slackersoft
2014-12-17 12:58:47 -08:00
parent bfcd8b046d
commit 482f4d62fc
5 changed files with 69 additions and 0 deletions

10
src/core/Anything.js Normal file
View File

@@ -0,0 +1,10 @@
getJasmineRequireObj().Anything = function(j$) {
function Anything() {}
Anything.prototype.asymmetricMatch = function(other) {
return !j$.util.isUndefined(other) && other !== null;
};
return Anything;
};