File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ module.exports = function (grunt) {
243
243
244
244
function registerTestingDependenciesTasks ( grunt ) {
245
245
const configsBasePath = path . join ( __dirname , "config" ) ;
246
- const generatedVersionFileName = "test-deps-versions-generated.json" ;
246
+ const generatedVersionFilePath = path . join ( configsBasePath , "test-deps-versions-generated.json" ) ;
247
247
248
248
grunt . registerTask ( "generate_unit_testing_dependencies" , async function ( ) {
249
249
var done = this . async ( ) ;
@@ -253,12 +253,12 @@ function registerTestingDependenciesTasks(grunt) {
253
253
const dependencyVersion = dependency . version || await latestVersion ( dependency . name ) ;
254
254
dependenciesVersions [ dependency . name ] = dependencyVersion ;
255
255
}
256
- grunt . file . write ( path . join ( configsBasePath , generatedVersionFileName ) , JSON . stringify ( dependenciesVersions ) ) ;
256
+ grunt . file . write ( generatedVersionFilePath , JSON . stringify ( dependenciesVersions ) ) ;
257
257
done ( ) ;
258
258
} ) ;
259
259
260
260
grunt . registerTask ( "verify_unit_testing_dependencies" , function ( ) {
261
- if ( ! grunt . file . exists ( path . join ( configsBasePath , generatedVersionFileName ) ) ) {
261
+ if ( ! grunt . file . exists ( generatedVersionFilePath ) ) {
262
262
throw new Error ( "Unit testing dependencies are not configured." ) ;
263
263
}
264
264
} ) ;
Original file line number Diff line number Diff line change 6
6
"name" : " karma-nativescript-launcher"
7
7
},
8
8
{
9
- "name" : " karma-jasmine " ,
10
- "framework" : " jasmine "
9
+ "name" : " mocha " ,
10
+ "framework" : " mocha "
11
11
},
12
12
{
13
13
"name" : " karma-mocha" ,
18
18
"framework" : " mocha"
19
19
},
20
20
{
21
- "name" : " mocha " ,
22
- "framework" : " mocha "
21
+ "name" : " karma-jasmine " ,
22
+ "framework" : " jasmine "
23
23
},
24
24
{
25
25
"name" : " karma-qunit" ,
Original file line number Diff line number Diff line change @@ -476,8 +476,8 @@ interface ITestExecutionService {
476
476
}
477
477
478
478
interface ITestInitializationService {
479
- getDependencies ( framework : string ) : string [ ]
480
- getDependenciesVersions ( ) : IDictionary < string >
479
+ getDependencies ( framework : string ) : string [ ] ;
480
+ getDependenciesVersions ( ) : IDictionary < string > ;
481
481
}
482
482
483
483
/**
Original file line number Diff line number Diff line change 120
120
"grunt-template" : " 1.0.0" ,
121
121
"grunt-ts" : " 6.0.0-beta.16" ,
122
122
"istanbul" : " 0.4.5" ,
123
- "latest-version" : " ^ 4.0.0" ,
123
+ "latest-version" : " 4.0.0" ,
124
124
"mocha" : " 3.1.2" ,
125
125
"should" : " 7.0.2" ,
126
126
"sinon" : " 4.1.2" ,
You can’t perform that action at this time.
0 commit comments