DEV: Remove unnecessary controllerFor in tests (#14779)

This commit is contained in:
Jarek Radosz 2021-10-30 23:36:37 +02:00 committed by GitHub
parent cd8822cb50
commit a7322aca77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@ import { test } from "qunit";
import I18n from "I18n";
import {
acceptance,
controllerFor,
count,
exists,
publishToMessageBus,
@ -785,9 +784,6 @@ acceptance(
});
test("tags are present on private messages - Desktop mode", async function (assert) {
const controller = controllerFor("user");
controller.set("publicUserFieldsLinkified", []);
await visit("/u/eviltrout/messages");
await click(".new-private-message");
@ -842,9 +838,6 @@ acceptance(
});
test("tags are not present on private messages - Mobile mode", async function (assert) {
const controller = controllerFor("user");
controller.set("publicUserFieldsLinkified", []);
await visit("/u/eviltrout/messages");
await click(".new-private-message");
assert.ok(!exists("#reply-control .mini-tag-chooser"));