Skip to content

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

DEV: Remove unused `testSelectKitModule` (#22363)

Jarek Radosz45c504d024ca
diff --git a/app/assets/javascripts/discourse/tests/helpers/select-kit-helper.js b/app/assets/javascripts/discourse/tests/helpers/select-kit-helper.js
index 648bcaa21f1..612a878febe 100644
--- a/app/assets/javascripts/discourse/tests/helpers/select-kit-helper.js
+++ b/app/assets/javascripts/discourse/tests/helpers/select-kit-helper.js
@@ -1,7 +1,6 @@
import { click, fillIn, triggerEvent } from "@ember/test-helpers";
import { exists, query, queryAll } from "discourse/tests/helpers/qunit-helpers";
import { isEmpty } from "@ember/utils";
-import { moduleForComponent } from "ember-qunit";
import jQuery from "jquery";
function checkSelectKitIsNotExpanded(selector) {
@@ -307,21 +306,6 @@ export default function selectKit(selector) {
};
}
-export function testSelectKitModule(moduleName, options = {}) {
- moduleForComponent(`select-kit/${moduleName}`, {
- integration: true,
-
- beforeEach() {
- this.set("subject", selectKit());
- options.beforeEach?.call(this);
- },
-
- afterEach() {
- options.afterEach?.call(this);
- },
- });
-}
-
export const DEFAULT_CONTENT = [
{ id: 1, name: "foo" },
{ id: 2, name: "bar" },