Skip to content

Commit 56fe266

Browse files
committed
fix a few assertions
1 parent a93d05a commit 56fe266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/socket.io.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ describe('socket.io', function(){
636636
});
637637
function getClients() {
638638
sio.of('/chat').clients(function(error, sids) {
639-
expect(error).to.be.undefined;
639+
expect(error).to.not.be.ok();
640640
expect(sids).to.contain(chatSids[0]);
641641
expect(sids).to.contain(chatSids[1]);
642642
expect(sids).to.not.contain(otherSid);
@@ -679,7 +679,7 @@ describe('socket.io', function(){
679679
});
680680
function getClients() {
681681
sio.of('/chat').in('foo').clients(function(error, sids) {
682-
expect(error).to.be.undefined;
682+
expect(error).to.not.be.ok();
683683
expect(sids).to.contain(chatFooSid);
684684
expect(sids).to.not.contain(chatBarSid);
685685
expect(sids).to.not.contain(otherSid);
@@ -722,7 +722,7 @@ describe('socket.io', function(){
722722
});
723723
function getClients() {
724724
sio.of('/chat').clients(function(error, sids) {
725-
expect(error).to.be.undefined;
725+
expect(error).to.not.be.ok();
726726
expect(sids).to.contain(chatFooSid);
727727
expect(sids).to.contain(chatBarSid);
728728
expect(sids).to.not.contain(otherSid);

0 commit comments

Comments
 (0)