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:
parent
2ad7d98990
commit
3e8561daaf
|
@ -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);
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue