DEV: Remove unused `testSelectKitModule` (#22363)

This commit is contained in:
Jarek Radosz 2023-07-03 11:23:41 +02:00 committed by GitHub
parent 68a3328999
commit 45c504d024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -1,7 +1,6 @@
import { click, fillIn, triggerEvent } from "@ember/test-helpers"; import { click, fillIn, triggerEvent } from "@ember/test-helpers";
import { exists, query, queryAll } from "discourse/tests/helpers/qunit-helpers"; import { exists, query, queryAll } from "discourse/tests/helpers/qunit-helpers";
import { isEmpty } from "@ember/utils"; import { isEmpty } from "@ember/utils";
import { moduleForComponent } from "ember-qunit";
import jQuery from "jquery"; import jQuery from "jquery";
function checkSelectKitIsNotExpanded(selector) { 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 = [ export const DEFAULT_CONTENT = [
{ id: 1, name: "foo" }, { id: 1, name: "foo" },
{ id: 2, name: "bar" }, { id: 2, name: "bar" },