File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function Local(){
1919
2020 this . start = function ( options , callback ) {
2121 if ( typeof callback !== 'function' )
22- callback = function ( ) { } ;
22+ callback = function ( ) { } ;
2323
2424 this . userArgs = [ ] ;
2525 var that = this ;
@@ -108,7 +108,7 @@ function Local(){
108108
109109 this . stop = function ( callback ) {
110110 if ( typeof callback !== 'function' )
111- callback = function ( ) { } ;
111+ callback = function ( ) { } ;
112112
113113 if ( ! this . pid ) return callback ( ) ;
114114 this . opcode = 'stop' ;
Original file line number Diff line number Diff line change @@ -182,9 +182,9 @@ describe('Local', function () {
182182 } ) ;
183183
184184 it ( 'should set proxy' , function ( done ) {
185- bsLocal . start ( {
186- 'key' : process . env . BROWSERSTACK_ACCESS_KEY ,
187- onlyCommand : true ,
185+ bsLocal . start ( {
186+ 'key' : process . env . BROWSERSTACK_ACCESS_KEY ,
187+ onlyCommand : true ,
188188 'proxyHost' : 'localhost' ,
189189 'proxyPort' : 8080 ,
190190 'proxyUser' : 'user' ,
@@ -208,15 +208,7 @@ describe('Local', function () {
208208 expect ( bsLocal . getBinaryArgs ( ) . indexOf ( 'localhost,8000,0' ) ) . to . not . equal ( - 1 ) ;
209209 done ( ) ;
210210 } ) ;
211- } )
212-
213- it ( 'does not error if no callback in stop' , function ( done ) {
214- this . timeout ( 60000 ) ;
215- bsLocal . start ( { 'key' : process . env . BROWSERSTACK_ACCESS_KEY } , function ( ) {
216- bsLocal . stop ( ) ;
217- done ( ) ;
218- } ) ;
219- } )
211+ } ) ;
220212
221213 afterEach ( function ( done ) {
222214 this . timeout ( 60000 ) ;
You can’t perform that action at this time.
0 commit comments