Skip to content

Commit

Permalink
fix a few assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa committed Feb 11, 2015
1 parent a93d05a commit 56fe266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ describe('socket.io', function(){
});
function getClients() {
sio.of('/chat').clients(function(error, sids) {
expect(error).to.be.undefined;
expect(error).to.not.be.ok();
expect(sids).to.contain(chatSids[0]);
expect(sids).to.contain(chatSids[1]);
expect(sids).to.not.contain(otherSid);
Expand Down Expand Up @@ -679,7 +679,7 @@ describe('socket.io', function(){
});
function getClients() {
sio.of('/chat').in('foo').clients(function(error, sids) {
expect(error).to.be.undefined;
expect(error).to.not.be.ok();
expect(sids).to.contain(chatFooSid);
expect(sids).to.not.contain(chatBarSid);
expect(sids).to.not.contain(otherSid);
Expand Down Expand Up @@ -722,7 +722,7 @@ describe('socket.io', function(){
});
function getClients() {
sio.of('/chat').clients(function(error, sids) {
expect(error).to.be.undefined;
expect(error).to.not.be.ok();
expect(sids).to.contain(chatFooSid);
expect(sids).to.contain(chatBarSid);
expect(sids).to.not.contain(otherSid);
Expand Down

0 comments on commit 56fe266

Please sign in to comment.