Skip to content

Commit 988d9d2

Browse files
committed
Merge pull request #1999 from nkzawa/patch-3
Fix a few assertions are not executed properly
2 parents d4fb6a5 + 56fe266 commit 988d9d2

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
@@ -668,7 +668,7 @@ describe('socket.io', function(){
668668
});
669669
function getClients() {
670670
sio.of('/chat').clients(function(error, sids) {
671-
expect(error).to.be.undefined;
671+
expect(error).to.not.be.ok();
672672
expect(sids).to.contain(chatSids[0]);
673673
expect(sids).to.contain(chatSids[1]);
674674
expect(sids).to.not.contain(otherSid);
@@ -711,7 +711,7 @@ describe('socket.io', function(){
711711
});
712712
function getClients() {
713713
sio.of('/chat').in('foo').clients(function(error, sids) {
714-
expect(error).to.be.undefined;
714+
expect(error).to.not.be.ok();
715715
expect(sids).to.contain(chatFooSid);
716716
expect(sids).to.not.contain(chatBarSid);
717717
expect(sids).to.not.contain(otherSid);
@@ -754,7 +754,7 @@ describe('socket.io', function(){
754754
});
755755
function getClients() {
756756
sio.of('/chat').clients(function(error, sids) {
757-
expect(error).to.be.undefined;
757+
expect(error).to.not.be.ok();
758758
expect(sids).to.contain(chatFooSid);
759759
expect(sids).to.contain(chatBarSid);
760760
expect(sids).to.not.contain(otherSid);

0 commit comments

Comments
 (0)