Add resolveValue and rejectValue spy strategies

This commit is contained in:
Elliot Nelson
2019-05-05 08:08:34 -04:00
parent afb24d1050
commit 72aa0bbe4d
6 changed files with 153 additions and 1 deletions

View File

@@ -45,6 +45,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
return env;
};
j$.getPromise = function() {
return j$.getEnv().getPromise() || j$.getGlobal().Promise;
};
j$.isArray_ = function(value) {
return j$.isA_('Array', value);
};