summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-10 13:38:11 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-10 13:47:21 +0200
commit51d49c3134c9acf7e2daba5bcc8c87e14a7548f1 (patch)
tree2c74c588fbcfeb1bb3766ad4a97ab9e4e21dfdc1 /core/js/tests
parent855486d7c14ac41c3b952591cc4acbaed996c45a (diff)
downloadnextcloud-server-51d49c3134c9acf7e2daba5bcc8c87e14a7548f1.tar.gz
nextcloud-server-51d49c3134c9acf7e2daba5bcc8c87e14a7548f1.zip
Move initCore to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specs/coreSpec.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js
index 047b5ec1eb5..a785cf49db8 100644
--- a/core/js/tests/specs/coreSpec.js
+++ b/core/js/tests/specs/coreSpec.js
@@ -368,13 +368,11 @@ describe('Core base tests', function() {
describe('Session heartbeat', function() {
var clock,
oldConfig,
- routeStub,
counter;
beforeEach(function() {
clock = sinon.useFakeTimers();
oldConfig = OC.config;
- routeStub = sinon.stub(OC, 'generateUrl').returns('/csrftoken');
counter = 0;
fakeServer.autoRespond = true;
@@ -389,7 +387,6 @@ describe('Core base tests', function() {
clock.restore();
/* jshint camelcase: false */
OC.config = oldConfig;
- routeStub.restore();
$(document).off('ajaxError');
$(document).off('ajaxComplete');
});
@@ -400,7 +397,6 @@ describe('Core base tests', function() {
session_lifetime: 300
};
window.initCore();
- expect(routeStub.calledWith('/csrftoken')).toEqual(true);
expect(counter).toEqual(0);
@@ -427,7 +423,6 @@ describe('Core base tests', function() {
session_lifetime: 300
};
window.initCore();
- expect(routeStub.notCalled).toEqual(true);
expect(counter).toEqual(0);