mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This migration will allow developers to migrate the deprecated `HttpClientModule`, `HttpClientJsonpModule` & `HttpClientXsrfModule` to their respective provider functions. PR Close #54020
27 lines
750 B
TypeScript
27 lines
750 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {HttpClientModule} from '@angular/common/http';
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {provideHttpClientTesting} from './provider';
|
|
|
|
/**
|
|
* Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
|
|
*
|
|
* Inject `HttpTestingController` to expect and flush requests in your tests.
|
|
*
|
|
* @publicApi
|
|
*
|
|
* @deprecated Add `provideHttpClientTesting()` to your providers instead.
|
|
*/
|
|
@NgModule({
|
|
imports: [HttpClientModule],
|
|
providers: [provideHttpClientTesting()],
|
|
})
|
|
export class HttpClientTestingModule {}
|