File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ var fs = require("fs"),
12
12
13
13
module . exports = function ( grunt ) {
14
14
grunt . initConfig ( {
15
+ mochaTest : {
16
+ test : {
17
+ options : {
18
+ style : 'bdd' ,
19
+ reporter : 'spec'
20
+ } ,
21
+ src : [ 'test/unit/*.js' ]
22
+ }
23
+ } ,
15
24
pkg : grunt . file . readJSON ( 'package.json' ) ,
16
25
uglify : {
17
26
options : {
@@ -42,6 +51,8 @@ module.exports = function(grunt) {
42
51
done ( ) ;
43
52
} ) ;
44
53
} ) ;
54
+ grunt . registerTask ( 'test' , 'mochaTest' ) ;
45
55
56
+ grunt . loadNpmTasks ( 'grunt-mocha-test' ) ;
46
57
grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
47
58
} ;
Original file line number Diff line number Diff line change 17
17
"canvas" : " >=0.10.0" ,
18
18
"grunt" : " ~0.4.3" ,
19
19
"grunt-contrib-uglify" : " ~0.2.0" ,
20
+ "grunt-mocha-test" : " ~0.11.0" ,
20
21
"browserify" : " ~3.32.0"
21
22
},
22
23
"keywords" : [" neural network" , " classifier" , " machine learning" ]
You can’t perform that action at this time.
0 commit comments