@@ -25,8 +25,12 @@ node {
2525// -- Testing with Mocha under Node
2626
2727task installDependenciesMochaNode (type : NpmTask ) {
28- args = [' install' , ' mocha' , ' source-map-support' , ' --no-save' ]
29- if (project. hasProperty(" teamcity" )) args + = ' mocha-teamcity-reporter'
28+ args = [' install' ,
29+ " mocha@$mocha_version " ,
30+ " source-map-support@$source_map_suport_version " ,
31+ ' --no-save' ]
32+ if (project. hasProperty(" teamcity" )) args + = [
33+ " mocha-teamcity-reporter@$mocha_teamcity_reporter_version " ]
3034}
3135
3236task prepareMochaNode (dependsOn : [compileTestKotlin2Js, populateNodeModules, installDependenciesMochaNode])
@@ -43,8 +47,14 @@ test.dependsOn testMochaNode
4347// -- Testing with Mocha under headless Chrome
4448
4549task installDependenciesMochaChrome (type : NpmTask ) {
46- args = [' install' , ' mocha-headless-chrome' , " kotlin@$kotlin_version " , " kotlin-test@$kotlin_version " , ' --no-save' ]
47- if (project. hasProperty(" teamcity" )) args + = ' mocha-teamcity-reporter'
50+ args = [' install' ,
51+ " mocha@$mocha_version " ,
52+ " mocha-headless-chrome@$mocha_headless_chrome_version " ,
53+ " kotlin@$kotlin_version " ,
54+ " kotlin-test@$kotlin_version " ,
55+ ' --no-save' ]
56+ if (project. hasProperty(" teamcity" )) args + = [
57+ " mocha-teamcity-reporter@$mocha_teamcity_reporter_version " ]
4858}
4959
5060task prepareMochaChrome (dependsOn : [compileTestKotlin2Js, populateNodeModules, installDependenciesMochaChrome])
0 commit comments