@@ -636,7 +636,7 @@ describe('socket.io', function(){
636
636
} ) ;
637
637
function getClients ( ) {
638
638
sio . of ( '/chat' ) . clients ( function ( error , sids ) {
639
- expect ( error ) . to . be . undefined ;
639
+ expect ( error ) . to . not . be . ok ( ) ;
640
640
expect ( sids ) . to . contain ( chatSids [ 0 ] ) ;
641
641
expect ( sids ) . to . contain ( chatSids [ 1 ] ) ;
642
642
expect ( sids ) . to . not . contain ( otherSid ) ;
@@ -679,7 +679,7 @@ describe('socket.io', function(){
679
679
} ) ;
680
680
function getClients ( ) {
681
681
sio . of ( '/chat' ) . in ( 'foo' ) . clients ( function ( error , sids ) {
682
- expect ( error ) . to . be . undefined ;
682
+ expect ( error ) . to . not . be . ok ( ) ;
683
683
expect ( sids ) . to . contain ( chatFooSid ) ;
684
684
expect ( sids ) . to . not . contain ( chatBarSid ) ;
685
685
expect ( sids ) . to . not . contain ( otherSid ) ;
@@ -722,7 +722,7 @@ describe('socket.io', function(){
722
722
} ) ;
723
723
function getClients ( ) {
724
724
sio . of ( '/chat' ) . clients ( function ( error , sids ) {
725
- expect ( error ) . to . be . undefined ;
725
+ expect ( error ) . to . not . be . ok ( ) ;
726
726
expect ( sids ) . to . contain ( chatFooSid ) ;
727
727
expect ( sids ) . to . contain ( chatBarSid ) ;
728
728
expect ( sids ) . to . not . contain ( otherSid ) ;
0 commit comments