mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:52:45 +08:00
DEV: Deprecate componentTest
(#30001)
This commit is contained in:
parent
85ead5ac7a
commit
fa4a37fd7d
|
@ -8,6 +8,7 @@ import Site from "discourse/models/site";
|
|||
import TopicTrackingState from "discourse/models/topic-tracking-state";
|
||||
import User from "discourse/models/user";
|
||||
import { currentSettings } from "discourse/tests/helpers/site-settings";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
|
||||
export function setupRenderingTest(hooks) {
|
||||
emberSetupRenderingTest(hooks);
|
||||
|
@ -51,6 +52,14 @@ export function setupRenderingTest(hooks) {
|
|||
}
|
||||
|
||||
export default function (name, hooks, opts) {
|
||||
deprecated(
|
||||
`\`componentTest\` is deprecated. Use QUnit's \`test\` and \`setupRenderingTest\` from "discourse/tests/helpers/component-test" instead.`,
|
||||
{
|
||||
id: "discourse.component-test",
|
||||
since: "3.4.0.beta3-dev",
|
||||
}
|
||||
);
|
||||
|
||||
if (opts === undefined) {
|
||||
opts = hooks;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user