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


TypeScript TestComponentBuilder.createAsync方法代码示例

本文整理汇总了TypeScript中angular2/testing.TestComponentBuilder.createAsync方法的典型用法代码示例。如果您正苦于以下问题:TypeScript TestComponentBuilder.createAsync方法的具体用法?TypeScript TestComponentBuilder.createAsync怎么用?TypeScript TestComponentBuilder.createAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在angular2/testing.TestComponentBuilder的用法示例。


在下文中一共展示了TestComponentBuilder.createAsync方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: it

 it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
   return tcb.createAsync(EditDialog).then((fixture) => {
     fixture.detectChanges();
   });
 }));
开发者ID:rockwotj,项目名称:angular2-moviequotes,代码行数:5,代码来源:edit-dialog.spec.ts

示例2: injectAsync

    injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {

      return tcb.createAsync(AppComponent).then(fixture => {
        expect(fixture.componentInstance instanceof AppComponent).toBe(true, 'should create AppComponent');
      });
    }));
开发者ID:ArtemGovorov,项目名称:event-view,代码行数:6,代码来源:app.component.spec.ts

示例3: it

 it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
   return tcb.createAsync(FakehotelReviewComponent).then((fixture: ComponentFixture) => {
     fixture.detectChanges();
   });
 }));
开发者ID:leeeandroo,项目名称:holidaypirates-assessment-test,代码行数:5,代码来源:fakehotel-review.component.spec.ts

示例4: it

 it('should be able to test', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
   return tcb.createAsync(App).then((componentFixture) => {
     componentFixture.detectChanges();
     expect(true).toBe(true);
   });
 }));
开发者ID:Pepkins,项目名称:Angular2-,代码行数:6,代码来源:app.spec.ts

示例5: it

 it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
    return tcb.createAsync(UserReservations).then((fixture) => {
       fixture.detectChanges();
     });
 }));
开发者ID:Domcik8,项目名称:clubby,代码行数:5,代码来源:user-reservations.component.spec.ts

示例6: it

 it('should be Transport', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
     return tcb.createAsync(AppComponent).then((fixture) => {
         expect(fixture.componentInstance.title).toEqual('Transport');
     });
 })); 
开发者ID:ssigg,项目名称:transport-angular2,代码行数:5,代码来源:app.component.spec.ts

示例7: it

 it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
   return tcb.createAsync(DetalleProductoComponent).then((fixture: ComponentFixture) => {
     fixture.detectChanges();
   });
 }));
开发者ID:andresciceri,项目名称:catalogo-angular-2,代码行数:5,代码来源:detalle-producto.component.spec.ts

示例8: it

 it('should display "My First Angular2 App"', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
   return tcb.createAsync(AppComponent).then((componentFixture: ComponentFixture) => {
     const element = componentFixture.nativeElement;
     expect(element.querySelector('h1').innerHTML).toBe('My First Angular2 App');
   });
 }));
开发者ID:hawkup,项目名称:github-stars,代码行数:6,代码来源:app.component.spec.ts

示例9: it

 it('should ...', async(inject([TestComponentBuilder], (tcb:TestComponentBuilder) => {
   tcb.createAsync(Login).then((fixture) => {
     fixture.detectChanges();
   });
 })));
开发者ID:BrooklynLabs,项目名称:angular2-webpack-login,代码行数:5,代码来源:login.spec.ts

示例10: it

 it('should ...', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
      return tcb.createAsync(SettingsNetwork).then((fixture) => { fixture.detectChanges(); });
    }));
开发者ID:NathanWalker,项目名称:raspberrypi-admin,代码行数:3,代码来源:settings-network.spec.ts


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