@@ -40,15 +40,29 @@ module.exports = function (grunt) {
4040 }
4141 }
4242 } ,
43- jasmine_node : {
43+ jasmine_nodejs : {
4444 options : {
45- forceExit : true ,
46- match : '.' ,
47- matchall : false ,
48- extensions : 'js' ,
49- specNameMatcher : 'spec'
45+ specNameSuffix : "spec.js" ,
46+ helperNameSuffix : "helper.js" ,
47+ useHelpers : false ,
48+ stopOnFailure : false ,
49+ reporters : {
50+ console : {
51+ colors : true ,
52+ cleanStack : 1 ,
53+ verbosity : 4 ,
54+ listStyle : "indent" ,
55+ activity : false
56+ } ,
57+ } ,
58+ customReporters : [ ]
5059 } ,
51- all : [ 'spec/' ]
60+ monoco : {
61+ specs : [
62+ "spec/module/**" ,
63+ "spec/monoco/**"
64+ ]
65+ }
5266 } ,
5367 karma : {
5468 monoco : {
@@ -88,7 +102,7 @@ module.exports = function (grunt) {
88102 options : {
89103 process : function ( src , filepath ) {
90104 var uid = generateId ( ) ,
91- result = '' ;
105+ result = '' ;
92106
93107 function generateId ( ) {
94108 function gen ( ) {
@@ -125,7 +139,7 @@ module.exports = function (grunt) {
125139 options : {
126140 process : function ( src , filepath ) {
127141 var result = '' ,
128- uid = '' ;
142+ uid = '' ;
129143
130144 if ( filepath . indexOf ( 'build' ) !== - 1 ) {
131145 result = src + '},\n"schemas" : {' ;
@@ -144,7 +158,7 @@ module.exports = function (grunt) {
144158 options : {
145159 process : function ( src , filepath ) {
146160 var result = '' ,
147- uid = '' ;
161+ uid = '' ;
148162
149163 if ( filepath . indexOf ( 'build' ) !== - 1 ) {
150164 result = src + '},\n"types" : {' ;
@@ -163,8 +177,8 @@ module.exports = function (grunt) {
163177 options : {
164178 process : function ( src , filepath ) {
165179 var result = '' ,
166- uid = '' ,
167- collectionName = '' ;
180+ uid = '' ,
181+ collectionName = '' ;
168182
169183 if ( filepath . indexOf ( 'build' ) !== - 1 ) {
170184 result = src + '},\n"components" : {' ;
@@ -229,7 +243,7 @@ module.exports = function (grunt) {
229243 grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
230244 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
231245 grunt . loadNpmTasks ( 'grunt-jsbeautifier' ) ;
232- grunt . loadNpmTasks ( 'grunt-jasmine-node ' ) ;
246+ grunt . loadNpmTasks ( 'grunt-jasmine-nodejs ' ) ;
233247 grunt . loadNpmTasks ( 'grunt-merge-json' ) ;
234248 grunt . loadNpmTasks ( 'grunt-contrib-yuidoc' ) ;
235249 grunt . loadNpmTasks ( 'grunt-karma' ) ;
@@ -257,7 +271,7 @@ module.exports = function (grunt) {
257271
258272 // test task
259273 grunt . registerTask ( 'test' , [
260- 'jasmine_node '
274+ 'jasmine_nodejs:monoco '
261275 ] ) ;
262276
263277 // debug task
0 commit comments