Require arguments to beforeEach, it, etc, to be actual functions

This commit is contained in:
Zaven Muradyan
2016-10-17 21:29:47 -07:00
parent be6ff8b24c
commit b59ac96b51
3 changed files with 130 additions and 12 deletions

View File

@@ -38,7 +38,11 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
};
j$.isA_ = function(typeName, value) {
return Object.prototype.toString.apply(value) === '[object ' + typeName + ']';
return j$.getType_(value) === '[object ' + typeName + ']';
};
j$.getType_ = function(value) {
return Object.prototype.toString.apply(value);
};
j$.isDomNode = function(obj) {