Skip to content

Commit

Permalink
Merge pull request #125 from nextcloud/fix-jsunit
Browse files Browse the repository at this point in the history
Fix failing JS unit tests
  • Loading branch information
MorrisJobke authored Jun 16, 2016
2 parents 700ff6d + 51b067d commit 19f2e78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/files/tests/js/filelistSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 19f2e78

Please sign in to comment.