1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01: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 5bad7aef05
commit 2c28f7cb1c

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