Removed support for custom promise libraries

All supported platforms now provide promises, so there's no longer a need
for Jasmine to be able to create them via a user-provided library. Jasmine
can still consume non-native promises but will always use the built-in
Promise object to create promises.

[#179078103]
This commit is contained in:
Steve Gravrock
2021-08-30 19:07:26 -07:00
parent 37b9f8e420
commit d61800c5c8
8 changed files with 22 additions and 237 deletions

View File

@@ -1,5 +1,5 @@
getJasmineRequireObj().SpyFactory = function(j$) {
function SpyFactory(getCustomStrategies, getDefaultStrategyFn, getPromise) {
function SpyFactory(getCustomStrategies, getDefaultStrategyFn) {
var self = this;
this.createSpy = function(name, originalFn) {
@@ -7,8 +7,7 @@ getJasmineRequireObj().SpyFactory = function(j$) {
name,
originalFn,
getCustomStrategies(),
getDefaultStrategyFn(),
getPromise
getDefaultStrategyFn()
);
};