Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b49f5c8

Browse files
committed
syntax
1 parent 5bd6719 commit b49f5c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/socket.io.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ describe('socket.io', function(){
273273

274274
it('should allow request when origin defined as function and same is supplied', function(done) {
275275
var sockets = io({ origins: function(origin,callback){
276-
if(origin == 'http://foo.example')
276+
if (origin == 'http://foo.example') {
277277
return callback(null, true);
278+
}
278279
return callback(null, false);
279280
} }).listen('54016');
280281
request.get('http://localhost:54016/socket.io/default/')
@@ -288,8 +289,9 @@ describe('socket.io', function(){
288289

289290
it('should allow request when origin defined as function and different is supplied', function(done) {
290291
var sockets = io({ origins: function(origin,callback){
291-
if(origin == 'http://foo.example')
292+
if (origin == 'http://foo.example') {
292293
return callback(null, true);
294+
}
293295
return callback(null, false);
294296
} }).listen('54017');
295297
request.get('http://localhost:54017/socket.io/default/')

0 commit comments

Comments
 (0)