diff options
author | lain <lain@soykaf.club> | 2020-06-07 14:52:56 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-07 14:52:56 +0200 |
commit | 2cdaac433035d8df3890eae098b55380b9e1c9fc (patch) | |
tree | 9614c853bf4798d88a5288cc5af7aef6eff947bc /test/web/pleroma_api | |
parent | 1a11f0e453527070a8ab5511318045470abc95e2 (diff) | |
download | pleroma-2cdaac433035d8df3890eae098b55380b9e1c9fc.tar.gz pleroma-2cdaac433035d8df3890eae098b55380b9e1c9fc.zip |
SideEffects: Move streaming of chats to after the transaction.
Diffstat (limited to 'test/web/pleroma_api')
-rw-r--r-- | test/web/pleroma_api/views/chat_view_test.exs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/web/pleroma_api/views/chat_view_test.exs b/test/web/pleroma_api/views/chat_view_test.exs index f7af5d4e0..14eecb1bd 100644 --- a/test/web/pleroma_api/views/chat_view_test.exs +++ b/test/web/pleroma_api/views/chat_view_test.exs @@ -16,21 +16,6 @@ defmodule Pleroma.Web.PleromaAPI.ChatViewTest do import Pleroma.Factory - test "giving a chat with an 'unread' field, it uses that" do - user = insert(:user) - recipient = insert(:user) - - {:ok, chat} = Chat.get_or_create(user.id, recipient.ap_id) - - chat = - chat - |> Map.put(:unread, 5) - - represented_chat = ChatView.render("show.json", chat: chat) - - assert represented_chat[:unread] == 5 - end - test "it represents a chat" do user = insert(:user) recipient = insert(:user) |