本文整理汇总了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);
});