Skip to content

Commit

Permalink
added test that server and client using same protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-roark committed Apr 10, 2014
1 parent 45a9897 commit f8b4d87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ describe('socket.io', function(){
expect(version).to.be(require('socket.io-client/package').version);
});

it('should have the same protocol version as client', function() {
var pversion = require('socket.io-parser').protocol;
var cparser = require('socket.io-client/node_modules/socket.io-parser');
expect(pversion).to.be(cparser.protocol);
});

describe('set', function() {
it('should be able to set ping timeout to engine.io', function() {
var srv = io(http());
Expand Down

0 comments on commit f8b4d87

Please sign in to comment.