This repository was archived by the owner on Dec 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ module.exports = function (config) {
9
9
10
10
browsers : process . env . TRAVIS ? [ 'Firefox' ] : [ 'Chrome' ] ,
11
11
12
- autoWatch : true
12
+ autoWatch : true ,
13
+
14
+ plugins : [
15
+ require . resolve ( './' ) ,
16
+ 'karma-chai' ,
17
+ 'karma-sinon' ,
18
+ 'karma-firefox-launcher' ,
19
+ 'karma-chrome-launcher'
20
+ ]
13
21
} )
14
22
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var initMocha = function (files, mochaConfig) {
8
8
var mochaPath = path . dirname ( require . resolve ( 'mocha' ) )
9
9
files . unshift ( createPattern ( path . join ( __dirname , 'adapter.js' ) ) )
10
10
11
- if ( mochaConfig . require && mochaConfig . require . map ) {
11
+ if ( mochaConfig && mochaConfig . require && mochaConfig . require . map ) {
12
12
mochaConfig . require . map ( function ( requirePath ) {
13
13
return files . unshift ( createPattern ( requirePath ) )
14
14
} )
Original file line number Diff line number Diff line change 34
34
"grunt-eslint" : " ^18.0.0" ,
35
35
"grunt-karma" : " 2.x" ,
36
36
"grunt-npm" : " ~0.0.2" ,
37
- "karma" : " 1.x || ^0.13.15" ,
38
- "karma-chai" : " 1.x || ~0.1.0" ,
39
- "karma-chrome-launcher" : " 1.x || ^0.2.1" ,
40
- "karma-firefox-launcher" : " 1.x || ~0.1.0" ,
41
- "karma-mocha" : " 1.x || ~0.2.1" ,
42
- "karma-sinon" : " 1.x || ~1.0.3" ,
37
+ "karma" : " ^1.0.0" ,
38
+ "karma-chai" : " ^0.1.0" ,
39
+ "karma-chrome-launcher" : " ^1.0.0" ,
40
+ "karma-firefox-launcher" : " ^1.0.0" ,
41
+ "karma-sinon" : " ^1.0.3" ,
43
42
"load-grunt-tasks" : " ^3.2.0" ,
44
43
"mocha" : " ^2.4.5" ,
45
44
"shared-karma-files" : " git://github.com/karma-runner/shared-karma-files.git#82ae8d02" ,
You can’t perform that action at this time.
0 commit comments