当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript TestBed.get方法代码示例

本文整理汇总了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));
开发者ID:AnthonyPAlicea,项目名称:angular,代码行数:1,代码来源:meta_spec.ts

示例2: it

 it('should be created', () => {
   const service: AuthenticationService = TestBed.get(AuthenticationService);
   expect(service).toBeTruthy();
 });/**/
开发者ID:dgdavidgreene,项目名称:AngularProjectBase,代码行数:4,代码来源:authentication.service.spec.ts

示例3: beforeEach

 beforeEach(() => {
     registry = TestBed.get(SettingsRegistry);
 });
开发者ID:suiruiw,项目名称:geeks-diary,代码行数:3,代码来源:settings-registry.spec.ts

示例4: beforeEach

 beforeEach(() => {
   service = TestBed.get(RbdMirroringService);
   httpTesting = TestBed.get(HttpTestingController);
 });
开发者ID:C2python,项目名称:ceph,代码行数:4,代码来源:rbd-mirroring.service.spec.ts

示例5: beforeEach

 beforeEach(() => {
   prometheus = new PrometheusHelper();
   service = TestBed.get(PrometheusAlertFormatter);
   notificationService = TestBed.get(NotificationService);
   spyOn(notificationService, 'show').and.stub();
 });
开发者ID:ceph,项目名称:ceph,代码行数:6,代码来源:prometheus-alert-formatter.spec.ts

示例6: it

 it('should be created', () => {
   const service: PurchaseService = TestBed.get(PurchaseService);
   expect(service).toBeTruthy();
 });
开发者ID:Talalaev,项目名称:momonga,代码行数:4,代码来源:purchase.service.spec.ts

示例7: it

 it('should be created', () => {
   const service: AddPlayerDialog = TestBed.get(AddPlayerDialog);
   expect(service).toBeTruthy();
 });
开发者ID:GamesByEmail,项目名称:Base,代码行数:4,代码来源:add-player-dialog.spec.ts

示例8: beforeEach

 beforeEach(() => {
     appConfigService = TestBed.get(AppConfigService);
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:3,代码来源:log.service.spec.ts

示例9: it

 it('the engine should be a Noop engine', () => {
   const engine = TestBed.get(ÉľAnimationEngine);
   expect(engine instanceof ÉľNoopAnimationEngine).toBeTruthy();
 });
开发者ID:JohnnyQQQQ,项目名称:angular,代码行数:4,代码来源:noop_animations_module_spec.ts

示例10: beforeEach

 beforeEach(() => {
   service = TestBed.get(PerformanceCounterService);
   httpTesting = TestBed.get(HttpTestingController);
 });
开发者ID:fghaas,项目名称:ceph,代码行数:4,代码来源:performance-counter.service.spec.ts


注:本文中的@angular/core/testing.TestBed.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。