tests: chase notification setting changes
This commit is contained in:
parent
4030837d91
commit
1542cccbbc
|
@ -81,7 +81,9 @@ test "Represent the user account for the account owner" do
|
||||||
"remote" => true,
|
"remote" => true,
|
||||||
"local" => true,
|
"local" => true,
|
||||||
"followers" => true,
|
"followers" => true,
|
||||||
"follows" => true
|
"follows" => true,
|
||||||
|
"non_follows" => true,
|
||||||
|
"non_followers" => true
|
||||||
}
|
}
|
||||||
|
|
||||||
privacy = user.info.default_scope
|
privacy = user.info.default_scope
|
||||||
|
|
|
@ -110,8 +110,14 @@ test "it updates notification settings", %{conn: conn} do
|
||||||
|
|
||||||
user = Repo.get(User, user.id)
|
user = Repo.get(User, user.id)
|
||||||
|
|
||||||
assert %{"remote" => false, "local" => true, "followers" => false, "follows" => true} ==
|
assert %{
|
||||||
user.info.notification_settings
|
"remote" => false,
|
||||||
|
"local" => true,
|
||||||
|
"followers" => false,
|
||||||
|
"follows" => true,
|
||||||
|
"non_follows" => true,
|
||||||
|
"non_followers" => true
|
||||||
|
} == user.info.notification_settings
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue