Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Refactored deprecated usage of [files] option param for triggerEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinansfield committed May 13, 2019
1 parent 5bad7ae commit 2c28f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helpers/file-upload.js
Expand Up @@ -14,10 +14,10 @@ export function createFile(content = ['test'], options = {}) {

export function fileUpload(target, content, options) {
let file = createFile(content, options);
// TODO: replace `[file]` with `{files: [file]}` after upgrading ember-test-helpers

return triggerEvent(
target,
'change',
[file]
{files: [file]}
);
}

0 comments on commit 2c28f7c

Please sign in to comment.