mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
DEV: Consistently use kebab-case in service lookups (#24552)
This commit is contained in:
@ -12,7 +12,9 @@ module("Discourse Chat | Component | chat-notice", function (hooks) {
|
||||
|
||||
test("displays all notices for a channel", async function (assert) {
|
||||
this.channel = fabricators.channel();
|
||||
this.manager = this.container.lookup("service:chatChannelNoticesManager");
|
||||
this.manager = this.container.lookup(
|
||||
"service:chat-channel-notices-manager"
|
||||
);
|
||||
this.manager.handleNotice({
|
||||
channel_id: this.channel.id,
|
||||
text_content: "hello",
|
||||
@ -38,7 +40,9 @@ module("Discourse Chat | Component | chat-notice", function (hooks) {
|
||||
|
||||
test("Notices can be cleared", async function (assert) {
|
||||
this.channel = fabricators.channel();
|
||||
this.manager = this.container.lookup("service:chatChannelNoticesManager");
|
||||
this.manager = this.container.lookup(
|
||||
"service:chat-channel-notices-manager"
|
||||
);
|
||||
this.manager.handleNotice({
|
||||
channel_id: this.channel.id,
|
||||
text_content: "hello",
|
||||
@ -62,7 +66,9 @@ module("Discourse Chat | Component | chat-notice", function (hooks) {
|
||||
});
|
||||
test("MentionWithoutMembership notice renders", async function (assert) {
|
||||
this.channel = fabricators.channel();
|
||||
this.manager = this.container.lookup("service:chatChannelNoticesManager");
|
||||
this.manager = this.container.lookup(
|
||||
"service:chat-channel-notices-manager"
|
||||
);
|
||||
const text = "Joffrey can't chat, hermano";
|
||||
this.manager.handleNotice({
|
||||
channel_id: this.channel.id,
|
||||
|
Reference in New Issue
Block a user