當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。