chore(test): remove deprecated RootTestComponent
Uses of `RootTestComponent` should be migrated to `ComponentFixture`.
This commit is contained in:
committed by
Jeremy Elbourn
parent
c7242a39d2
commit
ad99199d50
@@ -8,7 +8,7 @@ import {
|
||||
inject,
|
||||
it,
|
||||
TestComponentBuilder,
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
asyncRouteDataCmp
|
||||
} from './fixture_components';
|
||||
|
||||
function getLinkElement(rtc: RootTestComponent) {
|
||||
function getLinkElement(rtc: ComponentFixture) {
|
||||
return rtc.debugElement.componentViewChildren[0].nativeElement;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
inject,
|
||||
it,
|
||||
TestComponentBuilder,
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
@@ -19,7 +19,7 @@ import {Router, Route, Location} from 'angular2/router';
|
||||
import {HelloCmp, UserCmp, TeamCmp, ParentCmp, ParentWithDefaultCmp} from './fixture_components';
|
||||
|
||||
|
||||
function getLinkElement(rtc: RootTestComponent) {
|
||||
function getLinkElement(rtc: ComponentFixture) {
|
||||
return rtc.debugElement.componentViewChildren[0].nativeElement;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user