mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 15:41:51 +08:00
DEV: Simplify emoji-uploader tests (#15672)
Removes one layer of indirection in the tests. `emoji-uploader`'s `uploadDone` can call the test handler directly without going through an additional action method.
This commit is contained in:
parent
a0c040060a
commit
d0f4f408af
|
@ -17,7 +17,7 @@ discourseModule("Integration | Component | emoji-uploader", function (hooks) {
|
|||
|
||||
const template = hbs` {{emoji-uploader
|
||||
emojiGroups=emojiGroups
|
||||
done=(action "emojiUploaded")
|
||||
done=doneUpload
|
||||
id="emoji-uploader"
|
||||
}}`;
|
||||
|
||||
|
@ -25,11 +25,6 @@ discourseModule("Integration | Component | emoji-uploader", function (hooks) {
|
|||
requestNumber = 1;
|
||||
this.setProperties({
|
||||
emojiGroups: ["default", "coolemojis"],
|
||||
actions: {
|
||||
emojiUploaded: (upload, group) => {
|
||||
this.doneUpload(upload, group);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
pretender.post("/admin/customize/emojis.json", () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user