Merge pull request #7451 from nextcloud/12-7433
[stable12] Fix constructor spy in unit test with Sinon 4.1.3
This commit is contained in:
commit
2bd2835526
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue