feat(testing): add TestBed.get

This commit is contained in:
vsavkin 2016-08-16 20:20:48 -07:00 committed by Vikram Subramanian
parent 740e80492d
commit 4648b3e5de
1 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ export class TestBed implements Injector {
return TestBed;
}
static get(token: any, notFoundValue: any = Injector.THROW_IF_NOT_FOUND) {
return getTestBed().get(token, notFoundValue);
}
static createComponent<T>(component: Type<T>): ComponentFixture<T> {
return getTestBed().createComponent(component);
}