mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
DEV: Correct the app-events service injections (#21413)
This commit is contained in:
@ -66,7 +66,7 @@ module("Discourse Chat | Component | chat-composer-uploads", function (hooks) {
|
||||
`);
|
||||
|
||||
const done = assert.async();
|
||||
this.appEvents = this.container.lookup("service:appEvents");
|
||||
this.appEvents = this.container.lookup("service:app-events");
|
||||
this.appEvents.on(
|
||||
"upload-mixin:chat-composer-uploader:upload-success",
|
||||
(fileName, upload) => {
|
||||
@ -116,7 +116,7 @@ module("Discourse Chat | Component | chat-composer-uploads", function (hooks) {
|
||||
|
||||
const image = createFile("avatar.png");
|
||||
const done = assert.async();
|
||||
this.appEvents = this.container.lookup("service:appEvents");
|
||||
this.appEvents = this.container.lookup("service:app-events");
|
||||
|
||||
this.appEvents.on(
|
||||
`upload-mixin:chat-composer-uploader:upload-cancelled`,
|
||||
|
Reference in New Issue
Block a user