@@ -34,17 +34,17 @@ describe("Connect to remote server", function() {
3434 } ) ;
3535
3636 it ( 'should connect to the provided host' , function ( ) {
37- new DDPClient ( { 'host' : 'myserver.com' , } ) . connect ( ) ;
37+ new DDPClient ( { 'host' : 'myserver.com' } ) . connect ( ) ;
3838 assert . deepEqual ( wsConstructor . args , [ [ 'ws://myserver.com:3000/websocket' ] ] ) ;
3939 } ) ;
4040
4141 it ( 'should connect to the provided host and port' , function ( ) {
42- new DDPClient ( { 'host' : 'myserver.com' , 'port' : 42 , } ) . connect ( ) ;
42+ new DDPClient ( { 'host' : 'myserver.com' , 'port' : 42 } ) . connect ( ) ;
4343 assert . deepEqual ( wsConstructor . args , [ [ 'ws://myserver.com:42/websocket' ] ] ) ;
4444 } ) ;
4545
4646 it ( 'should use ssl if the port is 443' , function ( ) {
47- new DDPClient ( { 'host' : 'myserver.com' , 'port' : 443 , } ) . connect ( ) ;
47+ new DDPClient ( { 'host' : 'myserver.com' , 'port' : 443 } ) . connect ( ) ;
4848 assert . deepEqual ( wsConstructor . args , [ [ 'wss://myserver.com:443/websocket' ] ] ) ;
4949 } ) ;
5050
@@ -102,7 +102,7 @@ describe('Automatic reconnection', function() {
102102 reasons it does not work. See: https://github.com/cjohansen/Sinon.JS/issues/283
103103 */
104104 it ( 'should reconnect when the connection fails' , function ( done ) {
105- var ddpclient = new DDPClient ( { autoReconnectTimer : 10 , } ) ;
105+ var ddpclient = new DDPClient ( { autoReconnectTimer : 10 } ) ;
106106
107107 ddpclient . connect ( ) ;
108108 wsMock . emit ( 'close' , { } ) ;
@@ -118,7 +118,7 @@ describe('Automatic reconnection', function() {
118118 } ) ;
119119
120120 it ( 'should reconnect only once when the connection fails rapidly' , function ( done ) {
121- var ddpclient = new DDPClient ( { autoReconnectTimer : 5 , } ) ;
121+ var ddpclient = new DDPClient ( { autoReconnectTimer : 5 } ) ;
122122
123123 ddpclient . connect ( ) ;
124124 wsMock . emit ( 'close' , { } ) ;
0 commit comments