Add anything matcher to match any value that is neither null or undefined
[finish #58117878] Fix #186
This commit is contained in:
10
src/core/Anything.js
Normal file
10
src/core/Anything.js
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user