Created
September 14, 2017 06:32
-
-
Save AkshayRana92/911996ea98ec18bf2ac224802727b523 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeEach(() => { | |
TestBed.configureTestingModule({ | |
providers: [ | |
AppService, | |
MockBackend, | |
BaseRequestOptions, | |
{ | |
provide: Http, | |
useFactory: (backend: MockBackend, defaultOptions: BaseRequestOptions) => { | |
return new Http(backend, defaultOptions); | |
}, | |
deps: [MockBackend, BaseRequestOptions], | |
} | |
] | |
}); | |
service = TestBed.get(AppService) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment