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 {
101
101
102
102
this . $fs . ensureDirectoryExists ( testsDir ) ;
103
103
104
+ const frameworks = [ frameworkToInstall ] . concat ( this . karmaConfigAdditionalFrameworks [ frameworkToInstall ] || [ ] )
105
+ . map ( fw => `'${ fw } '` )
106
+ . join ( ', ' ) ;
104
107
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 } ) ;
110
109
111
110
this . $fs . writeFile ( path . join ( projectDir , 'karma.conf.js' ) , karmaConf ) ;
112
111
You can’t perform that action at this time.
0 commit comments