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(){
19
19
20
20
this . start = function ( options , callback ) {
21
21
if ( typeof callback !== 'function' )
22
- callback = function ( ) { } ;
22
+ callback = function ( ) { } ;
23
23
24
24
this . userArgs = [ ] ;
25
25
var that = this ;
@@ -108,7 +108,7 @@ function Local(){
108
108
109
109
this . stop = function ( callback ) {
110
110
if ( typeof callback !== 'function' )
111
- callback = function ( ) { } ;
111
+ callback = function ( ) { } ;
112
112
113
113
if ( ! this . pid ) return callback ( ) ;
114
114
this . opcode = 'stop' ;
Original file line number Diff line number Diff line change @@ -182,9 +182,9 @@ describe('Local', function () {
182
182
} ) ;
183
183
184
184
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 ,
188
188
'proxyHost' : 'localhost' ,
189
189
'proxyPort' : 8080 ,
190
190
'proxyUser' : 'user' ,
@@ -208,15 +208,7 @@ describe('Local', function () {
208
208
expect ( bsLocal . getBinaryArgs ( ) . indexOf ( 'localhost,8000,0' ) ) . to . not . equal ( - 1 ) ;
209
209
done ( ) ;
210
210
} ) ;
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
+ } ) ;
220
212
221
213
afterEach ( function ( done ) {
222
214
this . timeout ( 60000 ) ;
You can’t perform that action at this time.
0 commit comments