summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-12-06 12:00:09 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2018-12-06 12:21:02 +0000
commit6d77389fbf2f82cca2daba1c30ff9e4fd05fdc57 (patch)
treead5b75f31abe037fb6e53f8171ea71431a7dbc6e /apps/files
parentd500c4babfdd02181932ffdbf20bd3ddabdd8184 (diff)
downloadnextcloud-server-6d77389fbf2f82cca2daba1c30ff9e4fd05fdc57.tar.gz
nextcloud-server-6d77389fbf2f82cca2daba1c30ff9e4fd05fdc57.zip
Add abort stub in JSUnit
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files')
-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],