diff options
Diffstat (limited to 'test/polyjuice/client/room_test.exs')
-rw-r--r-- | test/polyjuice/client/room_test.exs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/polyjuice/client/room_test.exs b/test/polyjuice/client/room_test.exs index a1e0dfa..349ac54 100644 --- a/test/polyjuice/client/room_test.exs +++ b/test/polyjuice/client/room_test.exs @@ -216,6 +216,27 @@ defmodule Polyjuice.Client.RoomTest do end end + test "update read markers" do + with client = %DummyClient{ + response: { + %Polyjuice.Client.Endpoint.PostRoomsReadMarkers{ + room: "!room", + fully_read: "dede:local.fr", + read: "toto:local.fr" + }, + :ok + } + } do + :ok = + Polyjuice.Client.Room.update_read_markers( + client, + "!room", + "dede:local.fr", + "toto:local.fr" + ) + end + end + test "join room" do with client = %DummyClient{ response: { |