本文整理匯總了TypeScript中@angular/core/testing.TestBed.get方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript TestBed.get方法的具體用法?TypeScript TestBed.get怎麽用?TypeScript TestBed.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@angular/core/testing.TestBed
的用法示例。
在下文中一共展示了TestBed.get方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: expect
() => expect(TestBed.get(DependsOnMeta).meta).toBeAnInstanceOf(Meta));
示例2: it
it('should be created', () => {
const service: AuthenticationService = TestBed.get(AuthenticationService);
expect(service).toBeTruthy();
});/**/
示例3: beforeEach
beforeEach(() => {
registry = TestBed.get(SettingsRegistry);
});
示例4: beforeEach
beforeEach(() => {
service = TestBed.get(RbdMirroringService);
httpTesting = TestBed.get(HttpTestingController);
});
示例5: beforeEach
beforeEach(() => {
prometheus = new PrometheusHelper();
service = TestBed.get(PrometheusAlertFormatter);
notificationService = TestBed.get(NotificationService);
spyOn(notificationService, 'show').and.stub();
});
示例6: it
it('should be created', () => {
const service: PurchaseService = TestBed.get(PurchaseService);
expect(service).toBeTruthy();
});
示例7: it
it('should be created', () => {
const service: AddPlayerDialog = TestBed.get(AddPlayerDialog);
expect(service).toBeTruthy();
});
示例8: beforeEach
beforeEach(() => {
appConfigService = TestBed.get(AppConfigService);
});
示例9: it
it('the engine should be a Noop engine', () => {
const engine = TestBed.get(ÉľAnimationEngine);
expect(engine instanceof ÉľNoopAnimationEngine).toBeTruthy();
});
示例10: beforeEach
beforeEach(() => {
service = TestBed.get(PerformanceCounterService);
httpTesting = TestBed.get(HttpTestingController);
});