forked from AkkomaGang/akkoma
Revert adding extra alert types here
This commit is contained in:
parent
d9732fb7d3
commit
3eaa5335c9
1 changed files with 1 additions and 10 deletions
|
@ -176,16 +176,7 @@ test "returns a user subsciption", %{conn: conn, user: user, token: token} do
|
||||||
test "returns error when push disabled ", %{conn: conn} do
|
test "returns error when push disabled ", %{conn: conn} do
|
||||||
assert_error_when_disable_push do
|
assert_error_when_disable_push do
|
||||||
conn
|
conn
|
||||||
|> put("/api/v1/push/subscription", %{
|
|> put("/api/v1/push/subscription", %{data: %{"alerts" => %{"mention" => false}}})
|
||||||
data: %{
|
|
||||||
"mention" => false,
|
|
||||||
"favourite" => false,
|
|
||||||
"follow" => false,
|
|
||||||
"reblog" => false,
|
|
||||||
"pleroma:chat_mention" => false,
|
|
||||||
"pleroma:emoji_reaction" => false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|> json_response_and_validate_schema(403)
|
|> json_response_and_validate_schema(403)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue