Merged "check mute" test into the other two
authorKaren Konou <konoukaren@gmail.com>
Sat, 9 Feb 2019 17:34:00 +0000 (18:34 +0100)
committerKaren Konou <konoukaren@gmail.com>
Sat, 9 Feb 2019 17:34:00 +0000 (18:34 +0100)
test/web/thread_mute_test.exs

index 212cae8608ca26fe886302346c13188a93f2df51..119a06f5291cb1fbe435eeee39c90b146caf18c2 100644 (file)
@@ -20,6 +20,7 @@ defmodule Pleroma.Web.ThreadMuteTest do
     test "add mute", %{user: user, activity: activity} do
       id = activity.id
       {:ok, _activity} = add_mute(user, id)
+      assert muted?(user, activity)
     end
 
     test "remove mute", %{user: user, activity: activity} do
@@ -27,14 +28,6 @@ defmodule Pleroma.Web.ThreadMuteTest do
 
       add_mute(user, id)
       {:ok, _activity} = remove_mute(user, id)
-    end
-
-    test "check mute", %{user: user, activity: activity} do
-      id = activity.id
-
-      add_mute(user, id)
-      assert muted?(user, activity)
-      remove_mute(user, id)
       refute muted?(user, activity)
     end
   end