From a7322aca774ff453f4d8c8a82008ff139c689b66 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sat, 30 Oct 2021 23:36:37 +0200 Subject: [PATCH] DEV: Remove unnecessary `controllerFor` in tests (#14779) --- .../tests/acceptance/user-private-messages-test.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js b/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js index 7f46ab892b9..5b9a9b8ef06 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js @@ -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"));