Deprecated the Promise config setting

4.0 will only support environments that have native promises, so there will
no longer be a need for a user-supplied promise library
This commit is contained in:
Steve Gravrock
2021-08-07 12:01:44 -07:00
parent 9c9836c5b3
commit 4e96514634
4 changed files with 21 additions and 0 deletions
+1
View File
@@ -271,6 +271,7 @@ describe('Spies', function() {
reject: jasmine.createSpy()
};
customPromise.resolve.and.returnValue('resolved');
spyOn(env, 'deprecated');
env.configure({ Promise: customPromise });
var spy = env.createSpy('foo').and.resolveTo(42);