Skip to content

Commit 6d8c25e

Browse files
committedMay 30, 2023
Update download links
1 parent eebfe43 commit 6d8c25e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
 

‎lib/LocalBinary.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ function LocalBinary(){
1313

1414
this.getDownloadPath = function () {
1515
if(this.hostOS.match(/darwin|mac os/i)){
16-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-darwin-x64';
16+
return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-darwin-x64';
1717
} else if(this.hostOS.match(/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)) {
1818
this.windows = true;
19-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe';
19+
return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal.exe';
2020
} else {
2121
if(this.is64bits) {
2222
if(this.isAlpine())
23-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine';
23+
return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-alpine';
2424
else
25-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64';
25+
return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-x64';
2626
} else {
27-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32';
27+
return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-ia32';
2828
}
2929
}
3030
};

‎test/local.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -365,37 +365,37 @@ describe('LocalBinary', function () {
365365
var osNames = ['darwin', 'mac os'];
366366
osNames.forEach(function(os) {
367367
sandBox.stub(localBinary, 'hostOS', os);
368-
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-darwin-x64');
368+
expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-darwin-x64');
369369
});
370370
});
371371

372372
it('should return download path of exe binary', function() {
373373
var osNames = ['mswin', 'msys', 'mingw', 'cygwin', 'bccwin', 'wince', 'emc', 'win32'];
374374
osNames.forEach(function(os) {
375375
sandBox.stub(localBinary, 'hostOS', os);
376-
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe');
376+
expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal.exe');
377377
});
378378
});
379379

380380
it('should return download path of linux 64 arch binary', function() {
381381
sandBox.stub(localBinary, 'hostOS', 'linux');
382382
sandBox.stub(localBinary, 'is64bits', true);
383383
localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(false);
384-
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64');
384+
expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-x64');
385385
});
386386

387387
it('should return download path of linux 32 arch binary', function() {
388388
sandBox.stub(localBinary, 'hostOS', 'linux');
389389
sandBox.stub(localBinary, 'is64bits', false);
390390
localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(false);
391-
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32');
391+
expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-ia32');
392392
});
393393

394394
it('should return download path of alpine linux binary', function() {
395395
sandBox.stub(localBinary, 'hostOS', 'linux');
396396
localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(true);
397397
sandBox.stub(localBinary, 'is64bits', true);
398-
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine');
398+
expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-alpine');
399399
});
400400

401401
afterEach(function(done) {

0 commit comments

Comments
 (0)
Please sign in to comment.