@@ -22,11 +22,18 @@ module.exports = function(grunt) {
22
22
}
23
23
}
24
24
} ,
25
- qunit : {
26
- files : [ 'tests/**/*.html' ]
25
+ mocha : {
26
+ all : {
27
+ src : [ 'test/index.html' ] ,
28
+ options : {
29
+ run : true ,
30
+ log : true
31
+ // urls: ['http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/index.html']
32
+ }
33
+ }
27
34
} ,
28
35
jshint : {
29
- files : [ 'Gruntfile.js' , '* .js' , 'tests/tests .js' ] ,
36
+ files : [ 'Gruntfile.js' , 'ics .js' , 'test/spec/test .js' ] ,
30
37
options : {
31
38
// options here to override JSHint defaults
32
39
globals : {
@@ -40,18 +47,18 @@ module.exports = function(grunt) {
40
47
} ,
41
48
watch : {
42
49
files : [ '<%= jshint.files %>' ] ,
43
- tasks : [ 'jshint' , 'qunit ' ]
50
+ tasks : [ 'jshint' , 'mocha ' ]
44
51
}
45
52
} ) ;
46
53
47
54
grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
48
55
grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
49
- grunt . loadNpmTasks ( 'grunt-contrib-qunit ' ) ;
56
+ grunt . loadNpmTasks ( 'grunt-mocha ' ) ;
50
57
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
51
58
grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
52
59
53
- grunt . registerTask ( 'test' , [ 'jshint' , 'qunit ' ] ) ;
60
+ grunt . registerTask ( 'test' , [ 'jshint' , 'mocha ' ] ) ;
54
61
55
- grunt . registerTask ( 'default' , [ 'jshint' , 'qunit ' , 'concat' , 'uglify' ] ) ;
62
+ grunt . registerTask ( 'default' , [ 'jshint' , 'mocha ' , 'concat' , 'uglify' ] ) ;
56
63
57
64
} ;
0 commit comments