diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-17 13:37:13 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-11-22 16:05:51 +0100 |
commit | ab1d786d879d519c86cd2016490d1ade5e43fd41 (patch) | |
tree | d01b0f4fda22fe10f0a007a776eec93e08bcfa3e /apps | |
parent | 240ae46265c9bae2b1943d34dfe7b708d06c247a (diff) | |
download | nextcloud-server-ab1d786d879d519c86cd2016490d1ade5e43fd41.tar.gz nextcloud-server-ab1d786d879d519c86cd2016490d1ade5e43fd41.zip |
Fix port issue - options.host already has the port attached
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/js/publicAppSpec.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js index 8a644232e6c..1ea5f7ed1bc 100644 --- a/apps/files_sharing/tests/js/publicAppSpec.js +++ b/apps/files_sharing/tests/js/publicAppSpec.js @@ -21,13 +21,12 @@ describe('OCA.Sharing.PublicApp tests', function() { var App = OCA.Sharing.PublicApp; - var hostStub, portStub, protocolStub, webrootStub; + var hostStub, protocolStub, webrootStub; var $preview; beforeEach(function() { protocolStub = sinon.stub(OC, 'getProtocol').returns('https'); hostStub = sinon.stub(OC, 'getHost').returns('example.com'); - portStub = sinon.stub(OC, 'getPort').returns(8080); webrootStub = sinon.stub(OC, 'getRootPath').returns('/owncloud'); $preview = $('<div id="preview"></div>'); $('#testArea').append($preview); @@ -41,7 +40,6 @@ describe('OCA.Sharing.PublicApp tests', function() { afterEach(function() { protocolStub.restore(); hostStub.restore(); - portStub.restore(); webrootStub.restore(); }); @@ -91,7 +89,7 @@ describe('OCA.Sharing.PublicApp tests', function() { it('Uses public webdav endpoint', function() { expect(fakeServer.requests.length).toEqual(1); expect(fakeServer.requests[0].method).toEqual('PROPFIND'); - expect(fakeServer.requests[0].url).toEqual('https://sh4tok@example.com:8080/owncloud/public.php/webdav/subdir'); + expect(fakeServer.requests[0].url).toEqual('https://sh4tok@example.com/owncloud/public.php/webdav/subdir'); }); describe('Download Url', function() { |