File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ function LocalBinary(){
18
18
this . windows = true ;
19
19
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe' ;
20
20
} else {
21
- if ( this . isAlpine ( ) ) {
22
- return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine' ;
23
- } else {
24
- if ( this . is64bits )
25
- return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64' ;
21
+ if ( this . is64bits ) {
22
+ if ( this . isAlpine ( ) )
23
+ return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine' ;
26
24
else
27
- return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32' ;
25
+ return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64' ;
26
+ } else {
27
+ return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32' ;
28
28
}
29
29
}
30
30
} ;
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ describe('LocalBinary', function () {
354
354
it ( 'should return download path of alpine linux binary' , function ( ) {
355
355
sandBox . stub ( localBinary , 'hostOS' , 'linux' ) ;
356
356
localBinary . isAlpine = sandBox . stub ( localBinary , 'isAlpine' ) . returns ( true ) ;
357
+ sandBox . stub ( localBinary , 'is64bits' , true ) ;
357
358
expect ( localBinary . getDownloadPath ( ) ) . to . equal ( 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine' ) ;
358
359
} ) ;
359
360
You can’t perform that action at this time.
0 commit comments