Merge branch 'master' of https://github.com/sjolicoeur/jasmine into sjolicoeur-master

- Merges #1460 from @sjolicoeur
This commit is contained in:
Gregg Van Hove
2018-02-15 15:47:29 -08:00
11 changed files with 429 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
getJasmineRequireObj().Empty = function (j$) {
function Empty() {}
Empty.prototype.asymmetricMatch = function (other) {
if (j$.isString_(other) || j$.isArray_(other) || j$.isTypedArray_(other)) {
return other.length === 0;
}
if (j$.isMap(other) || j$.isSet(other)) {
return other.size === 0;
}
if (j$.isObject_(other)) {
return Object.keys(other).length === 0;
}
return false;
};
Empty.prototype.jasmineToString = function () {
return '<jasmine.empty>';
};
return Empty;
};