refactor(testing): remove deprecated testing functions (#10832)
Remove TestComponentBuilder, addProviders, and withProviders. These were deprecated in rc5 - see the changelog for update information. Note - this does not actually remove the functions, but makes them internal only. They will be removed from the codebase entirely at a later time.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
|
||||
import {OverridingTestComponentBuilder, platformCoreDynamicTesting} from '@angular/compiler/testing';
|
||||
import {NgModule, PlatformRef, createPlatformFactory} from '@angular/core';
|
||||
import {TestComponentBuilder, TestComponentRenderer} from '@angular/core/testing';
|
||||
import {TestComponentRenderer, __core_private_testing__ as r, __core_private_testing_types__ as t} from '@angular/core/testing';
|
||||
import {BrowserTestingModule} from '@angular/platform-browser/testing';
|
||||
|
||||
import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './src/platform_providers';
|
||||
@ -31,7 +31,7 @@ export const platformBrowserDynamicTesting = createPlatformFactory(
|
||||
@NgModule({
|
||||
exports: [BrowserTestingModule],
|
||||
providers: [
|
||||
{provide: TestComponentBuilder, useClass: OverridingTestComponentBuilder},
|
||||
{provide: r.TestComponentBuilder, useClass: OverridingTestComponentBuilder},
|
||||
{provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},
|
||||
]
|
||||
})
|
||||
|
Reference in New Issue
Block a user