forked from AkkomaGang/akkoma
Format
This commit is contained in:
parent
50d6183893
commit
3e968f9ef2
1 changed files with 8 additions and 6 deletions
|
@ -1150,7 +1150,8 @@ test "it returns empty when hide_followers is set to true", %{conn: conn} do
|
||||||
assert [] == response
|
assert [] == response
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it returns the followers when hide_followers is set to true if requested by the user themselves", %{
|
test "it returns the followers when hide_followers is set to true if requested by the user themselves",
|
||||||
|
%{
|
||||||
conn: conn
|
conn: conn
|
||||||
} do
|
} do
|
||||||
user = insert(:user, %{info: %{hide_followers: true}})
|
user = insert(:user, %{info: %{hide_followers: true}})
|
||||||
|
@ -1273,7 +1274,8 @@ test "it returns empty when hide_followings is set to true", %{conn: conn} do
|
||||||
assert [] == json_response(conn, 200)
|
assert [] == json_response(conn, 200)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it returns friends when hide_followings is set to true if the user themselves request it", %{
|
test "it returns friends when hide_followings is set to true if the user themselves request it",
|
||||||
|
%{
|
||||||
conn: conn
|
conn: conn
|
||||||
} do
|
} do
|
||||||
user = insert(:user, %{info: %{hide_followings: true}})
|
user = insert(:user, %{info: %{hide_followings: true}})
|
||||||
|
|
Loading…
Reference in a new issue