This commit is contained in:
Maxim Filippov 2019-01-28 21:35:02 +03:00
parent 50d6183893
commit 3e968f9ef2

View file

@ -1150,7 +1150,8 @@ test "it returns empty when hide_followers is set to true", %{conn: conn} do
assert [] == response
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
} do
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)
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
} do
user = insert(:user, %{info: %{hide_followings: true}})