summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-24 10:39:37 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-24 10:39:37 +0200
commit2317d7bb497cce3e5731dd43e2e69b9d3e780bb0 (patch)
tree3a88ee19f44ec38cc49741d70ed56b557cca9384 /apps/files/tests
parent8a1d3c7e877f143d211af259d08737c0d9aa8cfe (diff)
downloadnextcloud-server-2317d7bb497cce3e5731dd43e2e69b9d3e780bb0.tar.gz
nextcloud-server-2317d7bb497cce3e5731dd43e2e69b9d3e780bb0.zip
Fix sinon.stub deprecation warnings
Calls to `sinon.stub(obj, 'meth', fn)` are deprecated and therefore replaced by `sinon.stub(obj, 'meth).callsFake(fn)` as instructed by the deprecation warning. This makes the js unit testing output readable again. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 865aa35ac6a..ee73914f166 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -2273,7 +2273,7 @@ describe('OCA.Files.FileList tests', function() {
var actionStub = sinon.stub();
var readyHandler = sinon.stub();
var clock = sinon.useFakeTimers();
- var debounceStub = sinon.stub(_, 'debounce', function(callback) {
+ var debounceStub = sinon.stub(_, 'debounce').callsFake(function(callback) {
return function() {
// defer instead of debounce, to make it work with clock
_.defer(callback);