summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-04-24 13:47:46 +0200
committerGitHub <noreply@github.com>2017-04-24 13:47:46 +0200
commit97c27395aaddf974ad341f30e43b8554778c4ffe (patch)
treee2fa9edeba318009d8f0ef4155f2bcb40f5e0201 /apps/files
parent42e805f0578b95206fdddabfe6234b0880c27b1e (diff)
parent2317d7bb497cce3e5731dd43e2e69b9d3e780bb0 (diff)
downloadnextcloud-server-97c27395aaddf974ad341f30e43b8554778c4ffe.tar.gz
nextcloud-server-97c27395aaddf974ad341f30e43b8554778c4ffe.zip
Merge pull request #4458 from nextcloud/fix/sinon-stub-deprecation-warnings
Fix sinon.stub deprecation warnings
Diffstat (limited to 'apps/files')
-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);