mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:31:26 +08:00
DEV: Consolidate i18n import paths (#29804)
Enables our new eslint rules which enforce consistent i18n imports. For more info, see 0d58b40cd7
This commit is contained in:
@ -4,7 +4,7 @@ import hbs from "htmlbars-inline-precompile";
|
||||
import { module, test } from "qunit";
|
||||
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
||||
import pretender from "discourse/tests/helpers/create-pretender";
|
||||
import I18n from "discourse-i18n";
|
||||
import { i18n } from 'discourse-i18n';
|
||||
import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
|
||||
|
||||
module("Discourse Chat | Component | chat-channel-leave-btn", function (hooks) {
|
||||
@ -35,7 +35,7 @@ module("Discourse Chat | Component | chat-channel-leave-btn", function (hooks) {
|
||||
|
||||
assert
|
||||
.dom(".chat-channel-leave-btn")
|
||||
.hasAttribute("title", I18n.t("chat.direct_messages.leave"));
|
||||
.hasAttribute("title", i18n("chat.direct_messages.leave"));
|
||||
});
|
||||
|
||||
test("has a specific title for message channel", async function (assert) {
|
||||
@ -45,7 +45,7 @@ module("Discourse Chat | Component | chat-channel-leave-btn", function (hooks) {
|
||||
|
||||
assert
|
||||
.dom(".chat-channel-leave-btn")
|
||||
.hasAttribute("title", I18n.t("chat.leave"));
|
||||
.hasAttribute("title", i18n("chat.leave"));
|
||||
});
|
||||
|
||||
test("is not visible on mobile", async function (assert) {
|
||||
|
Reference in New Issue
Block a user