mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:53:45 +08:00
DEV: Remove ember export which has long been deprecated.
This commit is contained in:
parent
4cd388e84f
commit
5a47b351ac
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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"];
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user