Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove widget-test helpers file (#18011)

Jarek Radoszff0f43014c8e
diff --git a/app/assets/javascripts/discourse/tests/helpers/widget-test.js b/app/assets/javascripts/discourse/tests/helpers/widget-test.js
deleted file mode 100644
index 93f16c38a33..00000000000
--- a/app/assets/javascripts/discourse/tests/helpers/widget-test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import { addPretenderCallback } from "discourse/tests/helpers/qunit-helpers";
-import componentTest from "discourse/tests/helpers/component-test";
-import { moduleForComponent } from "ember-qunit";
-import { warn } from "@ember/debug";
-import deprecated from "discourse-common/lib/deprecated";
-
-export function moduleForWidget(name, options = {}) {
- warn(
- "moduleForWidget will not work in the Ember CLI environment. Please upgrade your tests.",
- { id: "module-for-widget" }
- );
- return;
-
- let fullName = `widget:${name}`;
- addPretenderCallback(fullName, options.pretend);
-
- moduleForComponent(
- name,
- fullName,
- Object.assign(
- { integration: true },
- { beforeEach: options.beforeEach, afterEach: options.afterEach }
- )
- );
-}
-
-export function widgetTest(name, opts) {
- deprecated("Use `componentTest` instead of `widgetTest`");
- return componentTest(name, opts);
-}