diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-01-08 13:25:38 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-01-08 13:25:38 +0100 |
commit | 9b595474afc23676744b4ff82e4c370401bf3682 (patch) | |
tree | 6bd8166ec46bbbc5333bfc1404aa3af547951e76 /apps | |
parent | 074a7fd47593ea375c6417366552856c053ea895 (diff) | |
download | nextcloud-server-9b595474afc23676744b4ff82e4c370401bf3682.tar.gz nextcloud-server-9b595474afc23676744b4ff82e4c370401bf3682.zip |
Fix public page URL JS test
Stub the port so it doesn't use the one configured by karma
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/js/publicAppSpec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js index cedc51f98f1..17b7ffc9798 100644 --- a/apps/files_sharing/tests/js/publicAppSpec.js +++ b/apps/files_sharing/tests/js/publicAppSpec.js @@ -21,12 +21,13 @@ describe('OCA.Sharing.PublicApp tests', function() { var App = OCA.Sharing.PublicApp; - var hostStub, protocolStub, webrootStub; + var hostStub, portStub, 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(9876); webrootStub = sinon.stub(OC, 'getRootPath').returns('/owncloud'); $preview = $('<div id="preview"></div>'); $('#testArea').append($preview); @@ -40,6 +41,7 @@ describe('OCA.Sharing.PublicApp tests', function() { afterEach(function() { protocolStub.restore(); hostStub.restore(); + portStub.restore(); webrootStub.restore(); }); |