0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Refactored deprecated usage of [files] option param for triggerEvent

This commit is contained in:
Kevin Ansfield 2019-05-13 13:47:52 +01:00
parent 1520122483
commit a96e942c4b

View file

@ -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]}
);
}