DEV: Remove ember export which has long been deprecated.

This commit is contained in:
Alan Guo Xiang Tan 2021-07-29 10:52:27 +08:00
parent 4cd388e84f
commit 5a47b351ac
2 changed files with 1 additions and 16 deletions

View File

@ -1,18 +1,3 @@
// Allow us to import Ember
define("ember", ["exports"], function (__exports__) {
// eslint-disable-next-line no-console
console.warn(
[
"Deprecation notice:",
"Use specific `@ember/*` imports instead of `ember`",
"(deprecated since Discourse 2.4.0)",
"(removal in Discourse 2.5.0)",
].join(" ")
);
__exports__.default = Ember;
});
define("message-bus-client", ["exports"], function (__exports__) {
__exports__.default = window.MessageBus;
});

View File

@ -1,5 +1,4 @@
import { acceptance, queryAll } from "discourse/tests/helpers/qunit-helpers";
import Ember from "ember";
import hbs from "htmlbars-inline-precompile";
import { test } from "qunit";
import { visit } from "@ember/test-helpers";
@ -8,6 +7,7 @@ acceptance("CustomHTML template", function (needs) {
needs.hooks.beforeEach(() => {
Ember.TEMPLATES["top"] = hbs`<span class='top-span'>TOP</span>`;
});
needs.hooks.afterEach(() => {
delete Ember.TEMPLATES["top"];
});