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:
parent
1520122483
commit
a96e942c4b
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ export function createFile(content = ['test'], options = {}) {
|
||||||
|
|
||||||
export function fileUpload(target, content, options) {
|
export function fileUpload(target, content, options) {
|
||||||
let file = createFile(content, options);
|
let file = createFile(content, options);
|
||||||
// TODO: replace `[file]` with `{files: [file]}` after upgrading ember-test-helpers
|
|
||||||
return triggerEvent(
|
return triggerEvent(
|
||||||
target,
|
target,
|
||||||
'change',
|
'change',
|
||||||
[file]
|
{files: [file]}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue