aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-12-06 12:00:09 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-12-06 12:00:09 +0100
commita938f0ea9da68ca79de20b7041a75852c074a20e (patch)
treee6e493e357e716e3fa186464d185df05d7529c18 /apps/files/tests
parent9204ce7d3d5f7b89e05940032d6a437174278f7f (diff)
downloadnextcloud-server-a938f0ea9da68ca79de20b7041a75852c074a20e.tar.gz
nextcloud-server-a938f0ea9da68ca79de20b7041a75852c074a20e.zip
Add abort stub in JSUnit
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/fileUploadSpec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/tests/js/fileUploadSpec.js b/apps/files/tests/js/fileUploadSpec.js
index ca88461fafb..ecf29f979d8 100644
--- a/apps/files/tests/js/fileUploadSpec.js
+++ b/apps/files/tests/js/fileUploadSpec.js
@@ -67,7 +67,8 @@ describe('OC.Upload tests', function() {
files: [file],
jqXHR: jqXHR,
response: sinon.stub().returns(jqXHR),
- submit: sinon.stub()
+ submit: sinon.stub(),
+ abort: sinon.stub()
};
if (uploader.fileUploadParam.add.call(
$dummyUploader[0],