DEV: Merge js dirs; prefix tests (#484)
This commit is contained in:
parent
59fa9d7dbf
commit
47a1170ec5
|
@ -1,7 +1,7 @@
|
||||||
import UserMenuNotificationsList from "discourse/components/user-menu/notifications-list";
|
import UserMenuNotificationsList from "discourse/components/user-menu/notifications-list";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import UserMenuNotificationItem from "discourse/lib/user-menu/notification-item";
|
import UserMenuNotificationItem from "discourse/lib/user-menu/notification-item";
|
||||||
import UserMenuAssignItem from "discourse/plugins/discourse-assign/discourse-assign/lib/user-menu/assign-item";
|
import UserMenuAssignItem from "../../lib/user-menu/assign-item";
|
||||||
import Notification from "discourse/models/notification";
|
import Notification from "discourse/models/notification";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import showModal from "discourse/lib/show-modal";
|
import showModal from "discourse/lib/show-modal";
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { cloneJSON } from "discourse-common/lib/object";
|
||||||
import selectKit from "discourse/tests/helpers/select-kit-helper";
|
import selectKit from "discourse/tests/helpers/select-kit-helper";
|
||||||
import { test } from "qunit";
|
import { test } from "qunit";
|
||||||
|
|
||||||
acceptance("User Private Messages | Discourse Assign", function (needs) {
|
acceptance("Discourse Assign | User Private Messages", function (needs) {
|
||||||
needs.user({
|
needs.user({
|
||||||
can_assign: true,
|
can_assign: true,
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,7 +4,7 @@ import EmberObject from "@ember/object";
|
||||||
import pretender, { response } from "discourse/tests/helpers/create-pretender";
|
import pretender, { response } from "discourse/tests/helpers/create-pretender";
|
||||||
import { getOwner } from "discourse-common/lib/get-owner";
|
import { getOwner } from "discourse-common/lib/get-owner";
|
||||||
|
|
||||||
module("Unit | Controller | assign-user", function (hooks) {
|
module("Discourse Assign | Unit | Controller | assign-user", function (hooks) {
|
||||||
setupRenderingTest(hooks);
|
setupRenderingTest(hooks);
|
||||||
|
|
||||||
test("assigning a user by selector does not close the modal", async function (assert) {
|
test("assigning a user by selector does not close the modal", async function (assert) {
|
|
@ -5,7 +5,7 @@ import * as showModal from "discourse/lib/show-modal";
|
||||||
import pretender, { response } from "discourse/tests/helpers/create-pretender";
|
import pretender, { response } from "discourse/tests/helpers/create-pretender";
|
||||||
import { getOwner } from "discourse-common/lib/get-owner";
|
import { getOwner } from "discourse-common/lib/get-owner";
|
||||||
|
|
||||||
module("Unit | Service | task-actions", function (hooks) {
|
module("Discourse Assign | Unit | Service | task-actions", function (hooks) {
|
||||||
setupTest(hooks);
|
setupTest(hooks);
|
||||||
|
|
||||||
test("assign", function (assert) {
|
test("assign", function (assert) {
|
||||||
|
|
Loading…
Reference in New Issue