@@ -18,7 +18,7 @@ const enableOctane = setupTestEnvironment.enableOctane;
1818
1919const glimmerComponentContents = `import Component from '@glimmer/component';
2020
21- export default class FooComponent extends Component {}
21+ export default class Foo extends Component {}
2222` ;
2323
2424const emberComponentContents = `import Component from '@ember/component';
@@ -145,7 +145,7 @@ describe('Blueprint: component-class', function () {
145145 it ( 'component-class x-foo' , function ( ) {
146146 return emberGenerateDestroy ( [ 'component-class' , 'x-foo' ] , ( _file ) => {
147147 expect ( _file ( 'app/components/x-foo.js' ) ) . to . equal (
148- glimmerComponentContents . replace ( 'FooComponent ' , 'XFooComponent ' )
148+ glimmerComponentContents . replace ( 'Foo ' , 'XFoo ' )
149149 ) ;
150150 } ) ;
151151 } ) ;
@@ -154,15 +154,15 @@ describe('Blueprint: component-class', function () {
154154 return emberGenerateDestroy ( [ 'component-class' , 'x-foo.js' ] , ( _file ) => {
155155 expect ( _file ( 'app/components/x-foo.js.js' ) ) . to . not . exist ;
156156 expect ( _file ( 'app/components/x-foo.js' ) ) . to . equal (
157- glimmerComponentContents . replace ( 'FooComponent ' , 'XFooComponent ' )
157+ glimmerComponentContents . replace ( 'Foo ' , 'XFoo ' )
158158 ) ;
159159 } ) ;
160160 } ) ;
161161
162162 it ( 'component-class foo/x-foo' , function ( ) {
163163 return emberGenerateDestroy ( [ 'component-class' , 'foo/x-foo' ] , ( _file ) => {
164164 expect ( _file ( 'app/components/foo/x-foo.js' ) ) . to . equal (
165- glimmerComponentContents . replace ( 'FooComponent ' , 'FooXFooComponent ' )
165+ glimmerComponentContents . replace ( 'Foo ' , 'FooXFoo ' )
166166 ) ;
167167 } ) ;
168168 } ) ;
@@ -172,7 +172,7 @@ describe('Blueprint: component-class', function () {
172172 [ 'component-class' , 'foo/x-foo' , '--component-class' , '@glimmer/component' ] ,
173173 ( _file ) => {
174174 expect ( _file ( 'app/components/foo/x-foo.js' ) ) . to . equal (
175- glimmerComponentContents . replace ( 'FooComponent ' , 'FooXFooComponent ' )
175+ glimmerComponentContents . replace ( 'Foo ' , 'FooXFoo ' )
176176 ) ;
177177 }
178178 ) ;
@@ -298,7 +298,7 @@ describe('Blueprint: component-class', function () {
298298 it ( 'component-class x-foo' , function ( ) {
299299 return emberGenerateDestroy ( [ 'component-class' , 'x-foo' ] , ( _file ) => {
300300 expect ( _file ( 'addon/components/x-foo.js' ) ) . to . equal (
301- glimmerComponentContents . replace ( 'FooComponent ' , 'XFooComponent ' )
301+ glimmerComponentContents . replace ( 'Foo ' , 'XFoo ' )
302302 ) ;
303303 expect ( _file ( 'app/components/x-foo.js' ) ) . to . contain (
304304 "export { default } from 'my-addon/components/x-foo';"
@@ -309,7 +309,7 @@ describe('Blueprint: component-class', function () {
309309 it ( 'component-class foo/x-foo' , function ( ) {
310310 return emberGenerateDestroy ( [ 'component-class' , 'foo/x-foo' ] , ( _file ) => {
311311 expect ( _file ( 'addon/components/foo/x-foo.js' ) ) . to . equal (
312- glimmerComponentContents . replace ( 'FooComponent ' , 'FooXFooComponent ' )
312+ glimmerComponentContents . replace ( 'Foo ' , 'FooXFoo ' )
313313 ) ;
314314 expect ( _file ( 'app/components/foo/x-foo.js' ) ) . to . contain (
315315 "export { default } from 'my-addon/components/foo/x-foo';"
@@ -320,7 +320,7 @@ describe('Blueprint: component-class', function () {
320320 it ( 'component-class x-foo --dummy' , function ( ) {
321321 return emberGenerateDestroy ( [ 'component-class' , 'x-foo' , '--dummy' ] , ( _file ) => {
322322 expect ( _file ( 'tests/dummy/app/components/x-foo.js' ) ) . equal (
323- glimmerComponentContents . replace ( 'FooComponent ' , 'XFooComponent ' )
323+ glimmerComponentContents . replace ( 'Foo ' , 'XFoo ' )
324324 ) ;
325325 expect ( _file ( 'app/components/x-foo.js' ) ) . to . not . exist ;
326326 } ) ;
@@ -329,7 +329,7 @@ describe('Blueprint: component-class', function () {
329329 it ( 'component-class foo/x-foo --dummy' , function ( ) {
330330 return emberGenerateDestroy ( [ 'component-class' , 'foo/x-foo' , '--dummy' ] , ( _file ) => {
331331 expect ( _file ( 'tests/dummy/app/components/foo/x-foo.js' ) ) . to . equal (
332- glimmerComponentContents . replace ( 'FooComponent ' , 'FooXFooComponent ' )
332+ glimmerComponentContents . replace ( 'Foo ' , 'FooXFoo ' )
333333 ) ;
334334 expect ( _file ( 'app/components/foo/x-foo.hbs' ) ) . to . not . exist ;
335335 } ) ;
@@ -367,7 +367,7 @@ describe('Blueprint: component-class', function () {
367367 [ 'component-class' , 'x-foo' , '--in-repo-addon=my-addon' ] ,
368368 ( _file ) => {
369369 expect ( _file ( 'lib/my-addon/addon/components/x-foo.js' ) ) . to . equal (
370- glimmerComponentContents . replace ( 'FooComponent ' , 'XFooComponent ' )
370+ glimmerComponentContents . replace ( 'Foo ' , 'XFoo ' )
371371 ) ;
372372 expect ( _file ( 'lib/my-addon/app/components/x-foo.js' ) ) . to . contain (
373373 "export { default } from 'my-addon/components/x-foo';"
0 commit comments