diff --git a/modules/@angular/core/testing/test_bed.ts b/modules/@angular/core/testing/test_bed.ts index c341d9fdf4..95715343e4 100644 --- a/modules/@angular/core/testing/test_bed.ts +++ b/modules/@angular/core/testing/test_bed.ts @@ -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(component: Type): ComponentFixture { return getTestBed().createComponent(component); }