aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-12-11 17:25:36 +0100
committerGitHub <noreply@github.com>2017-12-11 17:25:36 +0100
commit2bd2835526b94d0890c878edf1a2d234e40485cc (patch)
tree7eb6a615621c1e5568464e8d7a8f6750ad819ae8
parente4bf23ce7ba46bb427bee1c265f0c4a35732ab69 (diff)
parent26cf16d67fb539948990297a939ddb46411c98dc (diff)
downloadnextcloud-server-2bd2835526b94d0890c878edf1a2d234e40485cc.tar.gz
nextcloud-server-2bd2835526b94d0890c878edf1a2d234e40485cc.zip
Merge pull request #7451 from nextcloud/12-7433
[stable12] Fix constructor spy in unit test with Sinon 4.1.3
-rw-r--r--apps/files_sharing/tests/js/shareSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/js/shareSpec.js b/apps/files_sharing/tests/js/shareSpec.js
index ea2f427df75..3f0a2ad3c93 100644
--- a/apps/files_sharing/tests/js/shareSpec.js
+++ b/apps/files_sharing/tests/js/shareSpec.js
@@ -537,7 +537,7 @@ describe('OCA.Sharing.Util tests', function() {
var changeHandler = sinon.stub();
fileInfoModel.on('change', changeHandler);
- shareTabSpy.getCall(0).thisValue.trigger('sharesChanged', shareModel);
+ shareTabSpy.getCall(0).returnValue.trigger('sharesChanged', shareModel);
expect(changeHandler.calledOnce).toEqual(true);
expect(changeHandler.getCall(0).args[0].changed).toEqual({