@@ -168,7 +168,7 @@ describe('template generate lightning component:', () => {
168168 describe ( 'TypeScript Lightning web component generation' , ( ) => {
169169 it ( 'should create TypeScript LWC with explicit template flag' , ( ) => {
170170 execCmd (
171- 'template generate lightning component --componentname tsComponent --outputdir lwc --type lwc --template typeScript ' ,
171+ 'template generate lightning component --componentname tsComponent --outputdir lwc --type lwc --template typescript ' ,
172172 { ensureExitCode : 0 }
173173 ) ;
174174
@@ -307,7 +307,7 @@ describe('template generate lightning component:', () => {
307307
308308 it ( 'should create TypeScript component with proper class naming' , ( ) => {
309309 execCmd (
310- 'template generate lightning component --componentname mySpecialComponent --outputdir lwc --type lwc --template typeScript ' ,
310+ 'template generate lightning component --componentname mySpecialComponent --outputdir lwc --type lwc --template typescript ' ,
311311 { ensureExitCode : 0 }
312312 ) ;
313313
@@ -357,9 +357,9 @@ describe('template generate lightning component:', () => {
357357 ) ;
358358 } ) ;
359359
360- it ( 'should throw error when using typeScript template with aura type' , ( ) => {
360+ it ( 'should throw error when using typescript template with aura type' , ( ) => {
361361 const stderr = execCmd (
362- 'template generate lightning component --outputdir aura --componentname foo --type aura --template typeScript '
362+ 'template generate lightning component --outputdir aura --componentname foo --type aura --template typescript '
363363 ) . shellOutput . stderr ;
364364 expect ( stderr ) . to . contain ( messages . getMessage ( 'MissingLightningComponentTemplate' , [ 'typeScript' , 'aura' ] ) ) ;
365365 } ) ;
@@ -368,43 +368,34 @@ describe('template generate lightning component:', () => {
368368 describe ( 'Component generation outside project context' , ( ) => {
369369 it ( 'should create JavaScript component outside project with no template flag' , ( ) => {
370370 // Generate component in a directory without sfdx-project.json
371- execCmd ( 'template generate lightning component --componentname outsideComponent --outputdir standalone/lwc --type lwc' , {
372- ensureExitCode : 0 ,
373- } ) ;
371+ execCmd (
372+ 'template generate lightning component --componentname outsideComponent --outputdir standalone/lwc --type lwc' ,
373+ {
374+ ensureExitCode : 0 ,
375+ }
376+ ) ;
374377
375378 // Verify JavaScript files were created (default when no project context)
376- assert . file (
377- path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideComponent' , 'outsideComponent.js' )
378- ) ;
379- assert . file (
380- path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideComponent' , 'outsideComponent.html' )
381- ) ;
379+ assert . file ( path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideComponent' , 'outsideComponent.js' ) ) ;
380+ assert . file ( path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideComponent' , 'outsideComponent.html' ) ) ;
382381
383382 // Verify no TypeScript file
384- assert . noFile (
385- path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideComponent' , 'outsideComponent.ts' )
386- ) ;
383+ assert . noFile ( path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideComponent' , 'outsideComponent.ts' ) ) ;
387384 } ) ;
388385
389386 it ( 'should create TypeScript component outside project with explicit template flag' , ( ) => {
390387 // Generate TypeScript component outside project
391388 execCmd (
392- 'template generate lightning component --componentname outsideTsComponent --outputdir standalone/lwc --type lwc --template typeScript ' ,
389+ 'template generate lightning component --componentname outsideTsComponent --outputdir standalone/lwc --type lwc --template typescript ' ,
393390 { ensureExitCode : 0 }
394391 ) ;
395392
396393 // Verify TypeScript files were created
397- assert . file (
398- path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideTsComponent' , 'outsideTsComponent.ts' )
399- ) ;
400- assert . file (
401- path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideTsComponent' , 'outsideTsComponent.html' )
402- ) ;
394+ assert . file ( path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideTsComponent' , 'outsideTsComponent.ts' ) ) ;
395+ assert . file ( path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideTsComponent' , 'outsideTsComponent.html' ) ) ;
403396
404397 // Verify no JavaScript file
405- assert . noFile (
406- path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideTsComponent' , 'outsideTsComponent.js' )
407- ) ;
398+ assert . noFile ( path . join ( session . project . dir , 'standalone' , 'lwc' , 'outsideTsComponent' , 'outsideTsComponent.js' ) ) ;
408399 } ) ;
409400 } ) ;
410401} ) ;
0 commit comments