@@ -146,7 +146,7 @@ describe('Pass/Fail reporting', function() {
146146 browserstackRunner . run ( config , function ( err , reports ) {
147147 assert . equal ( err , null ) ;
148148 reports . forEach ( function ( report ) {
149- assert . equal ( report . tests . length , 3 ) ;
149+ assert . equal ( report . tests . length , 4 ) ;
150150 } ) ;
151151 done ( ) ;
152152 } ) ;
@@ -177,7 +177,7 @@ describe('Pass/Fail reporting', function() {
177177 reports . forEach ( function ( report ) {
178178 Object . keys ( report . tests ) . forEach ( function ( reportKey ) {
179179 report . tests [ reportKey ] . assertions . forEach ( function ( assertion ) {
180- assert . notEqual ( assertion [ 'message' ] . match ( / \d + i s .* a n .* n u m b e r / ) , null ) ;
180+ assert . notEqual ( assertion [ 'message' ] . match ( / ( \d + i s .* a n .* n u m b e r | c o n s o l e \. . * ? e x i s t s ) / ) , null ) ;
181181 } ) ;
182182 } ) ;
183183 } ) ;
@@ -216,8 +216,8 @@ describe('Pass/Fail reporting', function() {
216216 browserstackRunner . run ( config , function ( err , reports ) {
217217 assert . equal ( err , null ) ;
218218 reports . forEach ( function ( report ) {
219- assert . equal ( report . suites . testCounts [ 'total' ] , 3 ) ;
220- assert . equal ( report . suites . testCounts [ 'passed' ] , 1 ) ;
219+ assert . equal ( report . suites . testCounts [ 'total' ] , 4 ) ;
220+ assert . equal ( report . suites . testCounts [ 'passed' ] , 2 ) ;
221221 assert . equal ( report . suites . testCounts [ 'failed' ] , 2 ) ;
222222 assert . equal ( report . suites . testCounts [ 'skipped' ] , 0 ) ;
223223 } ) ;
0 commit comments