Return a promise from Env#execute in environments that support promises
[#178373231]
This commit is contained in:
@@ -4,4 +4,10 @@
|
||||
env.pending('Environment does not support promises');
|
||||
}
|
||||
};
|
||||
|
||||
env.requireNoPromises = function() {
|
||||
if (typeof Promise === 'function') {
|
||||
env.pending('Environment supports promises');
|
||||
}
|
||||
};
|
||||
})(jasmine.getEnv());
|
||||
|
||||
Reference in New Issue
Block a user