DEV: Deprecate `discourseModule` (#30000)

We're now using QUnit's `module` directly in core and all plugins/themes.
This commit is contained in:
Jarek Radosz 2024-11-29 20:08:52 +01:00 committed by GitHub
parent 52b7280ad4
commit a2c8177a4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -268,10 +268,10 @@ function cleanupCssGeneratorTags() {
} }
export function discourseModule(name, options) { export function discourseModule(name, options) {
// deprecated( deprecated(
// `${name}: \`discourseModule\` is deprecated. Use QUnit's \`module\` instead.`, `${name}: \`discourseModule\` is deprecated. Use QUnit's \`module\` instead.`,
// { since: "2.6.0" } { id: "discourse.discourse-module", since: "3.4.0.beta3-dev" }
// ); );
if (typeof options === "function") { if (typeof options === "function") {
module(name, function (hooks) { module(name, function (hooks) {