projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add `with_muted` param to ChatController.index/2
[akkoma]
/
test
/
pleroma
/
web
/
pleroma_api
/
controllers
/
chat_controller_test.exs
diff --git
a/test/pleroma/web/pleroma_api/controllers/chat_controller_test.exs
b/test/pleroma/web/pleroma_api/controllers/chat_controller_test.exs
index b0498df2bd60ee6f2213e4cab441d4085b2ef474..c1e6a8cc5e18bddd931b3be6ca33535dd433fd88 100644
(file)
--- a/
test/pleroma/web/pleroma_api/controllers/chat_controller_test.exs
+++ b/
test/pleroma/web/pleroma_api/controllers/chat_controller_test.exs
@@
-363,6
+363,13
@@
defmodule Pleroma.Web.PleromaAPI.ChatControllerTest do
|> json_response_and_validate_schema(200)
assert length(result) == 0
|> json_response_and_validate_schema(200)
assert length(result) == 0
+
+ result =
+ conn
+ |> get("/api/v1/pleroma/chats?with_muted=true")
+ |> json_response_and_validate_schema(200)
+
+ assert length(result) == 1
end
test "it returns all chats", %{conn: conn, user: user} do
end
test "it returns all chats", %{conn: conn, user: user} do