diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-06-16 11:00:58 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-06-16 11:00:58 +0200 |
commit | 51b067d603eb78669ef2e264752a7259e032c3ec (patch) | |
tree | 82d00ae4c306aef924e57dca43abc951e23b4af9 | |
parent | 700ff6da58427aea2a30747c376c0658540995a3 (diff) | |
download | nextcloud-server-51b067d603eb78669ef2e264752a7259e032c3ec.tar.gz nextcloud-server-51b067d603eb78669ef2e264752a7259e032c3ec.zip |
Fix failing JS unit tests
* fixes #124
-rw-r--r-- | apps/files/tests/js/filelistSpec.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index 7e6408128bb..44f271d8084 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -2364,14 +2364,12 @@ describe('OCA.Files.FileList tests', function() { */ function dropOn($target, data) { var eventData = { - originalEvent: { + delegatedEvent: { target: $target } }; var ev = new $.Event('fileuploaddrop', eventData); - // using triggerHandler instead of trigger so we can pass - // extra data - $uploader.triggerHandler(ev, data || {}); + $uploader.trigger(ev, data || {}); return ev; } |