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:
@@ -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()
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user