diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-06-16 13:06:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-16 13:06:48 +0200 |
commit | 19f2e786046b991c255c095786dcf73f54bb221f (patch) | |
tree | 82d00ae4c306aef924e57dca43abc951e23b4af9 | |
parent | 700ff6da58427aea2a30747c376c0658540995a3 (diff) | |
parent | 51b067d603eb78669ef2e264752a7259e032c3ec (diff) | |
download | nextcloud-server-19f2e786046b991c255c095786dcf73f54bb221f.tar.gz nextcloud-server-19f2e786046b991c255c095786dcf73f54bb221f.zip |
Merge pull request #125 from nextcloud/fix-jsunit
Fix failing JS unit tests
-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; } |