@@ -155,26 +155,26 @@ chain.add('uncaught exception', function() {
155155chain . add ( 'coverage' , function ( ) {
156156 tr . options . coverage = true ;
157157 tr . run ( {
158- code : fixtures + '/coverage-code.js' ,
159- tests : fixtures + '/coverage-test.js'
158+ code : fixtures + '/coverage-code.js' ,
159+ tests : fixtures + '/coverage-test.js'
160160 } , function ( err , res ) {
161- var stat = {
161+ var stat = {
162162 files : 1 ,
163- tests : 2 ,
164- assertions : 3 ,
165- failed : 0 ,
166- passed : 3 ,
167- coverage : {
168- files : 1 ,
169- statements : { covered : 4 , total : 5 } ,
170- branches : { covered : 0 , total : 0 } ,
171- functions : { covered : 2 , total : 3 } ,
172- lines : { covered : 4 , total : 5 }
173- }
163+ tests : 2 ,
164+ assertions : 3 ,
165+ failed : 0 ,
166+ passed : 3 ,
167+ coverage : {
168+ files : 1 ,
169+ statements : { covered : 6 , total : 7 } ,
170+ branches : { covered : 0 , total : 0 } ,
171+ functions : { covered : 3 , total : 4 } ,
172+ lines : { covered : 6 , total : 7 }
173+ }
174174 } ;
175- delete res . runtime ;
175+ delete res . runtime ;
176176 a . equal ( err , null , 'no errors' ) ;
177- a . deepEqual ( stat , res , 'coverage code testing works' ) ;
177+ a . deepEqual ( stat , res , 'coverage code testing works' ) ;
178178 chain . next ( ) ;
179179 } ) ;
180180} ) ;
0 commit comments