diff --git a/lib/LocalBinary.js b/lib/LocalBinary.js index 9f7f672..a5b0ecb 100644 --- a/lib/LocalBinary.js +++ b/lib/LocalBinary.js @@ -13,18 +13,18 @@ function LocalBinary(){ this.getDownloadPath = function () { if(this.hostOS.match(/darwin|mac os/i)){ - return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-darwin-x64'; + return 'https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-darwin-x64'; } else if(this.hostOS.match(/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)) { this.windows = true; - return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal.exe'; + return 'https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal.exe'; } else { if(this.is64bits) { if(this.isAlpine()) - return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-alpine'; + return 'https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-alpine'; else - return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-x64'; + return 'https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-linux-x64'; } else { - return 'https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-ia32'; + return 'https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-linux-ia32'; } } }; diff --git a/test/local.js b/test/local.js index cdda649..478712f 100644 --- a/test/local.js +++ b/test/local.js @@ -365,7 +365,7 @@ describe('LocalBinary', function () { var osNames = ['darwin', 'mac os']; osNames.forEach(function(os) { sandBox.stub(localBinary, 'hostOS', os); - expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-darwin-x64'); + expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-darwin-x64'); }); }); @@ -373,7 +373,7 @@ describe('LocalBinary', function () { var osNames = ['mswin', 'msys', 'mingw', 'cygwin', 'bccwin', 'wince', 'emc', 'win32']; osNames.forEach(function(os) { sandBox.stub(localBinary, 'hostOS', os); - expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal.exe'); + expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal.exe'); }); }); @@ -381,21 +381,21 @@ describe('LocalBinary', function () { sandBox.stub(localBinary, 'hostOS', 'linux'); sandBox.stub(localBinary, 'is64bits', true); localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(false); - expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-x64'); + expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-linux-x64'); }); it('should return download path of linux 32 arch binary', function() { sandBox.stub(localBinary, 'hostOS', 'linux'); sandBox.stub(localBinary, 'is64bits', false); localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(false); - expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-ia32'); + expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-linux-ia32'); }); it('should return download path of alpine linux binary', function() { sandBox.stub(localBinary, 'hostOS', 'linux'); localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(true); sandBox.stub(localBinary, 'is64bits', true); - expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-alpine'); + expect(localBinary.getDownloadPath()).to.equal('https://www.browserstack.com/local-testing/downloads/bin/BrowserStackLocal-alpine'); }); afterEach(function(done) {