diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-10 09:50:46 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-13 08:46:35 +0100 |
commit | ae0a496da83613dc8b41540f2fa32479a3ec3f07 (patch) | |
tree | 494fdf6e463a0691356b41d154d2cc7b8881168f /apps/files_trashbin/tests | |
parent | 25f8d76f266d53fa4b6f0f3c4fa65febc7b31253 (diff) | |
download | nextcloud-server-ae0a496da83613dc8b41540f2fa32479a3ec3f07.tar.gz nextcloud-server-ae0a496da83613dc8b41540f2fa32479a3ec3f07.zip |
Bump jquery from 2.2.4 to 3.1.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_trashbin/tests')
-rw-r--r-- | apps/files_trashbin/tests/js/filelistSpec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_trashbin/tests/js/filelistSpec.js b/apps/files_trashbin/tests/js/filelistSpec.js index 11ba49c487e..a655acb208c 100644 --- a/apps/files_trashbin/tests/js/filelistSpec.js +++ b/apps/files_trashbin/tests/js/filelistSpec.js @@ -316,7 +316,7 @@ describe('OCA.Trashbin.FileList tests', function () { expect($('.selectedActions .item-delete').is(':visible')).toEqual(false); expect($('.selectedActions .item-restore').is(':visible')).toEqual(false); }); - it('Deletes selected files when "Delete" clicked', function () { + it('Deletes selected files when "Delete" clicked', function (done) { var request; var promise = fileList._onClickDeleteSelected({ preventDefault: function () { @@ -334,9 +334,9 @@ describe('OCA.Trashbin.FileList tests', function () { expect(fileList.findFileEl('Three.pdf.d33333').length).toEqual(0); expect(fileList.findFileEl('somedir.d99999').length).toEqual(0); expect(fileList.findFileEl('Two.jpg.d22222').length).toEqual(1); - }); + }).then(done, done); }); - it('Deletes all files when all selected when "Delete" clicked', function () { + it('Deletes all files when all selected when "Delete" clicked', function (done) { var request; $('.select-all').click(); var promise = fileList._onClickDeleteSelected({ @@ -349,11 +349,11 @@ describe('OCA.Trashbin.FileList tests', function () { request.respond(200); return promise.then(function () { expect(fileList.isEmpty).toEqual(true); - }); + }).then(done, done); }); }); describe('Restore', function () { - it('Restores selected files when "Restore" clicked', function () { + it('Restores selected files when "Restore" clicked', function (done) { var request; var promise = fileList._onClickRestoreSelected({ preventDefault: function () { @@ -372,9 +372,9 @@ describe('OCA.Trashbin.FileList tests', function () { expect(fileList.findFileEl('Three.pdf.d33333').length).toEqual(0); expect(fileList.findFileEl('somedir.d99999').length).toEqual(0); expect(fileList.findFileEl('Two.jpg.d22222').length).toEqual(1); - }); + }).then(done, done); }); - it('Restores all files when all selected when "Restore" clicked', function () { + it('Restores all files when all selected when "Restore" clicked', function (done) { var request; $('.select-all').click(); var promise = fileList._onClickRestoreSelected({ @@ -391,7 +391,7 @@ describe('OCA.Trashbin.FileList tests', function () { } return promise.then(function() { expect(fileList.isEmpty).toEqual(true); - }); + }).then(done, done); }); }); }); |