Possibly unhandled rejection in Angular 1.6
This has been fixed with fix($q): Add traceback to unhandled promise rejections — Commit 316f60f and the fix is included in the v1.6.1 release.
This has been fixed with fix($q): Add traceback to unhandled promise rejections — Commit 316f60f and the fix is included in the v1.6.1 release.
As of angular 6 I noticed that overrideProvider works with the useValue property. So in order to make it work try something like: class MockRequestService1 { … } class MockRequestService2 { … } then write you TestBed like: // example with injected service TestBed.configureTestingModule({ // Provide the service-under-test providers: [ SomeService, { provide: SomeInjectedService, useValue: … Read more