本文整理汇总了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();
});
}));
示例2: injectAsync
injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
return tcb.createAsync(AppComponent).then(fixture => {
expect(fixture.componentInstance instanceof AppComponent).toBe(true, 'should create AppComponent');
});
}));
示例3: it
it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
return tcb.createAsync(FakehotelReviewComponent).then((fixture: ComponentFixture) => {
fixture.detectChanges();
});
}));
示例4: it
it('should be able to test', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
return tcb.createAsync(App).then((componentFixture) => {
componentFixture.detectChanges();
expect(true).toBe(true);
});
}));
示例5: it
it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
return tcb.createAsync(UserReservations).then((fixture) => {
fixture.detectChanges();
});
}));
示例6: it
it('should be Transport', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
return tcb.createAsync(AppComponent).then((fixture) => {
expect(fixture.componentInstance.title).toEqual('Transport');
});
}));
示例7: it
it('should ...', injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
return tcb.createAsync(DetalleProductoComponent).then((fixture: ComponentFixture) => {
fixture.detectChanges();
});
}));
示例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');
});
}));
示例9: it
it('should ...', async(inject([TestComponentBuilder], (tcb:TestComponentBuilder) => {
tcb.createAsync(Login).then((fixture) => {
fixture.detectChanges();
});
})));
示例10: it
it('should ...', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
return tcb.createAsync(SettingsNetwork).then((fixture) => { fixture.detectChanges(); });
}));