fix: fix observable
This commit is contained in:
9
src/testing/http.ts
Normal file
9
src/testing/http.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { HttpFeatureKind } from '@ngify/http';
|
||||
import { HttpClientTestingBackend } from '@ngify/http/testing';
|
||||
|
||||
export function provideHttpClientTesting() {
|
||||
return {
|
||||
provide: HttpFeatureKind.Backend,
|
||||
useClass: HttpClientTestingBackend,
|
||||
};
|
||||
}
|
||||
@@ -6,3 +6,4 @@ export {
|
||||
} from './spy';
|
||||
export { createRetriableStream } from './create-retriable-stream.helper';
|
||||
export { MockRouter, mockRouterProvider } from './router';
|
||||
export { provideHttpClientTesting } from './http';
|
||||
|
||||
Reference in New Issue
Block a user