@@ -228,32 +228,32 @@ export function main() {
228
228
} ) ;
229
229
} ) ) ;
230
230
231
- it ( 'should allow attribute selectors for components in ng2' , ( ) => {
232
- @Component ( { selector : '[itWorks]' , template : 'It works' } )
233
- class WorksComponent {
234
- }
235
-
236
- @Component ( { selector : 'root-component' , template : '<span itWorks></span>!' } )
237
- class RootComponent {
238
- }
239
-
240
- @NgModule ( {
241
- declarations : [ RootComponent , WorksComponent ] ,
242
- entryComponents : [ RootComponent ] ,
243
- imports : [ BrowserModule , UpgradeModule ]
244
- } )
245
- class Ng2Module {
246
- ngDoBootstrap ( ) { }
247
- }
248
-
249
- const ng1Module = angular . module ( 'ng1' , [ ] ) . directive (
250
- 'rootComponent' , downgradeComponent ( { component : RootComponent } ) ) ;
251
-
252
- const element = html ( '<root-component></root-component>' ) ;
253
-
254
- bootstrap ( platformBrowserDynamic ( ) , Ng2Module , element , ng1Module ) . then ( ( upgrade ) => {
255
- expect ( multiTrim ( document . body . textContent ) ) . toBe ( 'It works!' ) ;
256
- } ) ;
257
- } ) ;
231
+ it ( 'should allow attribute selectors for components in ng2' , async ( ( ) => {
232
+ @Component ( { selector : '[itWorks]' , template : 'It works' } )
233
+ class WorksComponent {
234
+ }
235
+
236
+ @Component ( { selector : 'root-component' , template : '<span itWorks></span>!' } )
237
+ class RootComponent {
238
+ }
239
+
240
+ @NgModule ( {
241
+ declarations : [ RootComponent , WorksComponent ] ,
242
+ entryComponents : [ RootComponent ] ,
243
+ imports : [ BrowserModule , UpgradeModule ]
244
+ } )
245
+ class Ng2Module {
246
+ ngDoBootstrap ( ) { }
247
+ }
248
+
249
+ const ng1Module = angular . module ( 'ng1' , [ ] ) . directive (
250
+ 'rootComponent' , downgradeComponent ( { component : RootComponent } ) ) ;
251
+
252
+ const element = html ( '<root-component></root-component>' ) ;
253
+
254
+ bootstrap ( platformBrowserDynamic ( ) , Ng2Module , element , ng1Module ) . then ( ( upgrade ) => {
255
+ expect ( multiTrim ( document . body . textContent ) ) . toBe ( 'It works!' ) ;
256
+ } ) ;
257
+ } ) ) ;
258
258
} ) ;
259
259
}
0 commit comments