REFACTOR: Some qunit `module` imports were missing

These are tricky because `module.exports` is used by nodejs files as a
global, which is OK. But we don't want to allow `module` in JS tests
for qunit without importing it first.
This commit is contained in:
Robin Ward 2020-10-07 12:14:49 -04:00
parent 2ad7d98990
commit 3e8561daaf
4 changed files with 4 additions and 3 deletions

View File

@ -36,6 +36,7 @@ import { setURLContainer } from "discourse/lib/url";
import { setDefaultOwner } from "discourse-common/lib/get-owner";
import bootbox from "bootbox";
import { moduleFor } from "ember-qunit";
import { module } from "qunit";
export function currentUser() {
return User.create(sessionFixtures["/session/current.json"].current_user);

View File

@ -1,4 +1,4 @@
import { skip } from "qunit";
import { module, skip } from "qunit";
import DiscourseURL from "discourse/lib/url";
import ClickTrack from "discourse/lib/click-track";
import { fixture, logIn } from "discourse/tests/helpers/qunit-helpers";

View File

@ -1,4 +1,4 @@
import { skip } from "qunit";
import { module, skip } from "qunit";
import DiscourseURL from "discourse/lib/url";
import ClickTrack from "discourse/lib/click-track";
import { fixture, logIn } from "discourse/tests/helpers/qunit-helpers";

View File

@ -1,6 +1,6 @@
import highlightSearch, { CLASS_NAME } from "discourse/lib/highlight-search";
import { fixture } from "discourse/tests/helpers/qunit-helpers";
import { test } from "qunit";
import { module, test } from "qunit";
module("lib:highlight-search");