File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,9 @@ describe('socket.io', function(){
273
273
274
274
it ( 'should allow request when origin defined as function and same is supplied' , function ( done ) {
275
275
var sockets = io ( { origins : function ( origin , callback ) {
276
- if ( origin == 'http://foo.example' )
276
+ if ( origin == 'http://foo.example' ) {
277
277
return callback ( null , true ) ;
278
+ }
278
279
return callback ( null , false ) ;
279
280
} } ) . listen ( '54016' ) ;
280
281
request . get ( 'http://localhost:54016/socket.io/default/' )
@@ -288,8 +289,9 @@ describe('socket.io', function(){
288
289
289
290
it ( 'should allow request when origin defined as function and different is supplied' , function ( done ) {
290
291
var sockets = io ( { origins : function ( origin , callback ) {
291
- if ( origin == 'http://foo.example' )
292
+ if ( origin == 'http://foo.example' ) {
292
293
return callback ( null , true ) ;
294
+ }
293
295
return callback ( null , false ) ;
294
296
} } ) . listen ( '54017' ) ;
295
297
request . get ( 'http://localhost:54017/socket.io/default/' )
You can’t perform that action at this time.
0 commit comments