File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,11 @@ class TestInitCommand implements ICommand {
101101
102102 this . $fs . ensureDirectoryExists ( testsDir ) ;
103103
104+ const frameworks = [ frameworkToInstall ] . concat ( this . karmaConfigAdditionalFrameworks [ frameworkToInstall ] || [ ] )
105+ . map ( fw => `'${ fw } '` )
106+ . join ( ', ' ) ;
104107 const karmaConfTemplate = this . $resources . readText ( 'test/karma.conf.js' ) ;
105- const karmaConf = _ . template ( karmaConfTemplate ) ( {
106- frameworks : [ frameworkToInstall ] . concat ( this . karmaConfigAdditionalFrameworks [ frameworkToInstall ] )
107- . map ( fw => `'${ fw } '` )
108- . join ( ', ' )
109- } ) ;
108+ const karmaConf = _ . template ( karmaConfTemplate ) ( { frameworks } ) ;
110109
111110 this . $fs . writeFile ( path . join ( projectDir , 'karma.conf.js' ) , karmaConf ) ;
112111
You can’t perform that action at this time.
0 commit comments