summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
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/federatedfilesharing
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/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/tests/js/externalSpec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/tests/js/externalSpec.js b/apps/federatedfilesharing/tests/js/externalSpec.js
index 362df49252b..596c0ae60ac 100644
--- a/apps/federatedfilesharing/tests/js/externalSpec.js
+++ b/apps/federatedfilesharing/tests/js/externalSpec.js
@@ -8,6 +8,8 @@
*
*/
+/* global sinon */
+
describe('OCA.Sharing external tests', function() {
var plugin;
var urlQueryStub;
@@ -24,8 +26,8 @@ describe('OCA.Sharing external tests', function() {
plugin = OCA.Sharing.ExternalShareDialogPlugin;
urlQueryStub = sinon.stub(OC.Util.History, 'parseUrlQuery');
- confirmDialogStub = sinon.stub(OC.dialogs, 'confirm', dummyShowDialog);
- promptDialogStub = sinon.stub(OC.dialogs, 'prompt', dummyShowDialog);
+ confirmDialogStub = sinon.stub(OC.dialogs, 'confirm').callsFake(dummyShowDialog);
+ promptDialogStub = sinon.stub(OC.dialogs, 'prompt').callsFake(dummyShowDialog);
plugin.filesApp = {
fileList: {