forked from AkkomaGang/akkoma
Merged "check mute" test into the other two
This commit is contained in:
parent
638456ce8f
commit
478a05b4c9
1 changed files with 1 additions and 8 deletions
|
@ -20,6 +20,7 @@ defmodule Pleroma.Web.ThreadMuteTest do
|
||||||
test "add mute", %{user: user, activity: activity} do
|
test "add mute", %{user: user, activity: activity} do
|
||||||
id = activity.id
|
id = activity.id
|
||||||
{:ok, _activity} = add_mute(user, id)
|
{:ok, _activity} = add_mute(user, id)
|
||||||
|
assert muted?(user, activity)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "remove mute", %{user: user, activity: activity} do
|
test "remove mute", %{user: user, activity: activity} do
|
||||||
|
@ -27,14 +28,6 @@ test "remove mute", %{user: user, activity: activity} do
|
||||||
|
|
||||||
add_mute(user, id)
|
add_mute(user, id)
|
||||||
{:ok, _activity} = remove_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)
|
refute muted?(user, activity)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue