/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/common/http/testing/src/module.ts
27 строк
742 B
Andrew Kushnir
refactor(common): convert scripts within `packages/common` to relative imports (#60623)
01 апр 2025, 18:58
01 апр 2025, 18:58
3fa7b2b
Код
Авторство
О чём код?
/** * @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.dev/license */ import {HttpClientModule} from '../../index'; 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 {}