@@ -668,7 +668,7 @@ describe('socket.io', function(){
668
668
} ) ;
669
669
function getClients ( ) {
670
670
sio . of ( '/chat' ) . clients ( function ( error , sids ) {
671
- expect ( error ) . to . be . undefined ;
671
+ expect ( error ) . to . not . be . ok ( ) ;
672
672
expect ( sids ) . to . contain ( chatSids [ 0 ] ) ;
673
673
expect ( sids ) . to . contain ( chatSids [ 1 ] ) ;
674
674
expect ( sids ) . to . not . contain ( otherSid ) ;
@@ -711,7 +711,7 @@ describe('socket.io', function(){
711
711
} ) ;
712
712
function getClients ( ) {
713
713
sio . of ( '/chat' ) . in ( 'foo' ) . clients ( function ( error , sids ) {
714
- expect ( error ) . to . be . undefined ;
714
+ expect ( error ) . to . not . be . ok ( ) ;
715
715
expect ( sids ) . to . contain ( chatFooSid ) ;
716
716
expect ( sids ) . to . not . contain ( chatBarSid ) ;
717
717
expect ( sids ) . to . not . contain ( otherSid ) ;
@@ -754,7 +754,7 @@ describe('socket.io', function(){
754
754
} ) ;
755
755
function getClients ( ) {
756
756
sio . of ( '/chat' ) . clients ( function ( error , sids ) {
757
- expect ( error ) . to . be . undefined ;
757
+ expect ( error ) . to . not . be . ok ( ) ;
758
758
expect ( sids ) . to . contain ( chatFooSid ) ;
759
759
expect ( sids ) . to . contain ( chatBarSid ) ;
760
760
expect ( sids ) . to . not . contain ( otherSid ) ;
0 commit comments