Skip to content

Commit

Permalink
remove compression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Feb 4, 2015
1 parent 49423d7 commit ef23c74
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions test/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -1330,36 +1330,6 @@ describe('socket.io', function(){
});
});

it('should enable compression by default', function(done){
var srv = http();
var sio = io(srv);
srv.listen(function(){
var socket = client(srv);
sio.on('connection', function(s){
s.conn.once('packetCreate', function(packet) {
expect(packet.options.compress).to.be(true);
done();
});
s.emit('woot', 'hi');
});
});
});

it('should disable compression', function(done){
var srv = http();
var sio = io(srv);
srv.listen(function(){
var socket = client(srv);
sio.on('connection', function(s){
s.conn.once('packetCreate', function(packet) {
expect(packet.options.compress).to.be(false);
done();
});
s.compress(false).emit('woot', 'hi');
});
});
});

it('should error with raw binary and warn', function(done){
var srv = http();
var sio = io(srv);
Expand Down

0 comments on commit ef23c74

Please sign in to comment.