diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2020-09-20 09:31:09 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2020-09-20 09:31:09 -0400 |
commit | b5b01680d58e0696202b099fc5bd0757e8359ad5 (patch) | |
tree | bd46b2c71c58db0d9b6f7a69deb4736cd60064a0 /test/polyjuice | |
parent | add function to return client PID and client struct (diff) |
return :ok instead of {:ok}
Diffstat (limited to 'test/polyjuice')
-rw-r--r-- | test/polyjuice/client/endpoint/post_logout_test.exs | 2 | ||||
-rw-r--r-- | test/polyjuice/client/endpoint/post_rooms_receipt_test.exs | 2 | ||||
-rw-r--r-- | test/polyjuice/client/room_test.exs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/polyjuice/client/endpoint/post_logout_test.exs b/test/polyjuice/client/endpoint/post_logout_test.exs index 07c8211..7f7835c 100644 --- a/test/polyjuice/client/endpoint/post_logout_test.exs +++ b/test/polyjuice/client/endpoint/post_logout_test.exs @@ -36,7 +36,7 @@ defmodule Polyjuice.Client.Endpoint.PostLogoutTest do 200, [{"Content-Type", "application/json"}], "{}" - ) == {:ok} + ) == :ok assert Polyjuice.Client.Endpoint.Proto.transform_http_result( endpoint, diff --git a/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs b/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs index fdb9490..1d126a2 100644 --- a/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs +++ b/test/polyjuice/client/endpoint/post_rooms_receipt_test.exs @@ -39,7 +39,7 @@ defmodule Polyjuice.Client.Endpoint.PostRoomsReceiptTest do 200, [{"Content-Type", "application/json"}], "{}" - ) == {:ok} + ) == :ok assert Polyjuice.Client.Endpoint.Proto.transform_http_result( endpoint, diff --git a/test/polyjuice/client/room_test.exs b/test/polyjuice/client/room_test.exs index 6c631e0..b45f607 100644 --- a/test/polyjuice/client/room_test.exs +++ b/test/polyjuice/client/room_test.exs @@ -208,11 +208,11 @@ defmodule Polyjuice.Client.RoomTest do event_id: "$event", receipt_type: "m.read" }, - {:ok} + :ok } } do - {:ok} = Polyjuice.Client.Room.update_read_receipt(client, "!room", "$event", "m.read") - {:ok} = Polyjuice.Client.Room.update_read_receipt(client, "!room", "$event") + :ok = Polyjuice.Client.Room.update_read_receipt(client, "!room", "$event", "m.read") + :ok = Polyjuice.Client.Room.update_read_receipt(client, "!room", "$event") end end |