File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -1330,36 +1330,6 @@ describe('socket.io', function(){
1330
1330
} ) ;
1331
1331
} ) ;
1332
1332
1333
- it ( 'should enable compression by default' , function ( done ) {
1334
- var srv = http ( ) ;
1335
- var sio = io ( srv ) ;
1336
- srv . listen ( function ( ) {
1337
- var socket = client ( srv ) ;
1338
- sio . on ( 'connection' , function ( s ) {
1339
- s . conn . once ( 'packetCreate' , function ( packet ) {
1340
- expect ( packet . options . compress ) . to . be ( true ) ;
1341
- done ( ) ;
1342
- } ) ;
1343
- s . emit ( 'woot' , 'hi' ) ;
1344
- } ) ;
1345
- } ) ;
1346
- } ) ;
1347
-
1348
- it ( 'should disable compression' , function ( done ) {
1349
- var srv = http ( ) ;
1350
- var sio = io ( srv ) ;
1351
- srv . listen ( function ( ) {
1352
- var socket = client ( srv ) ;
1353
- sio . on ( 'connection' , function ( s ) {
1354
- s . conn . once ( 'packetCreate' , function ( packet ) {
1355
- expect ( packet . options . compress ) . to . be ( false ) ;
1356
- done ( ) ;
1357
- } ) ;
1358
- s . compress ( false ) . emit ( 'woot' , 'hi' ) ;
1359
- } ) ;
1360
- } ) ;
1361
- } ) ;
1362
-
1363
1333
it ( 'should error with raw binary and warn' , function ( done ) {
1364
1334
var srv = http ( ) ;
1365
1335
var sio = io ( srv ) ;
You can’t perform that action at this time.
0 commit comments