projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AccountController: Remove unused `update_?` routes.
[akkoma]
/
test
/
web
/
pleroma_api
/
controllers
/
chat_controller_test.exs
diff --git
a/test/web/pleroma_api/controllers/chat_controller_test.exs
b/test/web/pleroma_api/controllers/chat_controller_test.exs
index c2960956dbdfab5a77bfc01f57474fc45c454d49..82e16741db325b457a61457c83db3a34679fee00 100644
(file)
--- a/
test/web/pleroma_api/controllers/chat_controller_test.exs
+++ b/
test/web/pleroma_api/controllers/chat_controller_test.exs
@@
-289,7
+289,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatControllerTest do
assert length(result) == 0
end
assert length(result) == 0
end
- test "it
paginate
s", %{conn: conn, user: user} do
+ test "it
returns all chat
s", %{conn: conn, user: user} do
Enum.each(1..30, fn _ ->
recipient = insert(:user)
{:ok, _} = Chat.get_or_create(user.id, recipient.ap_id)
Enum.each(1..30, fn _ ->
recipient = insert(:user)
{:ok, _} = Chat.get_or_create(user.id, recipient.ap_id)
@@
-300,14
+300,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatControllerTest do
|> get("/api/v1/pleroma/chats")
|> json_response_and_validate_schema(200)
|> get("/api/v1/pleroma/chats")
|> json_response_and_validate_schema(200)
- assert length(result) == 20
-
- result =
- conn
- |> get("/api/v1/pleroma/chats?max_id=#{List.last(result)["id"]}")
- |> json_response_and_validate_schema(200)
-
- assert length(result) == 10
+ assert length(result) == 30
end
test "it return a list of chats the current user is participating in, in descending order of updates",
end
test "it return a list of chats the current user is participating in, in descending order of updates",