Return a promise from Env#execute in environments that support promises

[#178373231]
This commit is contained in:
Steve Gravrock
2021-08-07 13:05:55 -07:00
parent dcaac62a6c
commit e72d161fab
5 changed files with 297 additions and 110 deletions

View File

@@ -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());