@@ -51,21 +51,24 @@ QUnit.module('Ember.Application - visit() Integration Tests', function (hooks) {
51
51
this . template ( 'application' , '<h1>Hello world</h1>\n{{outlet}}' ) ;
52
52
this . template ( 'a' , '<h2>Welcome to {{x-foo page="A"}}</h2>' ) ;
53
53
this . template ( 'b' , '<h2>{{x-foo page="B"}}</h2>' ) ;
54
- this . template ( 'components/x-foo' , 'Page {{this.page}}' ) ;
55
54
56
55
let initCalled = false ;
57
56
let didInsertElementCalled = false ;
58
57
59
- this . component ( 'x-foo' , {
60
- tagName : 'span' ,
61
- init : function ( ) {
62
- this . _super ( ) ;
63
- initCalled = true ;
64
- } ,
65
- didInsertElement : function ( ) {
66
- didInsertElementCalled = true ;
58
+ this . component (
59
+ 'x-foo' ,
60
+ {
61
+ tagName : 'span' ,
62
+ init : function ( ) {
63
+ this . _super ( ) ;
64
+ initCalled = true ;
65
+ } ,
66
+ didInsertElement : function ( ) {
67
+ didInsertElementCalled = true ;
68
+ } ,
67
69
} ,
68
- } ) ;
70
+ 'Page {{this.page}}'
71
+ ) ;
69
72
70
73
let App = this . createApplication ( ) ;
71
74
@@ -337,8 +340,7 @@ QUnit.module('Ember.Application - visit() Integration Tests', function (hooks) {
337
340
338
341
QUnit . test ( 'FastBoot: tagless components can render' , function ( assert ) {
339
342
this . template ( 'application' , "<div class='my-context'>{{my-component}}</div>" ) ;
340
- this . component ( 'my-component' , { tagName : '' } ) ;
341
- this . template ( 'components/my-component' , '<h1>hello world</h1>' ) ;
343
+ this . component ( 'my-component' , { tagName : '' } , '<h1>hello world</h1>' ) ;
342
344
343
345
let App = this . createApplication ( ) ;
344
346
0 commit comments