Verified Commit 77274d4a authored by Nicolas's avatar Nicolas

Add test assertion

parent b119baff
Pipeline #113021085 passed with stages
in 3 minutes and 3 seconds
......@@ -3,6 +3,9 @@ defmodule PlasmaHS.RoomServerTests do
import PlasmaRepo.Factory
alias PlasmaHS.RoomServer
@matrix_config Application.get_env(:plasma, :matrix)
@default_room_version @matrix_config[:default_room_version]
def clear_cache(_context) do
PlasmaRepo.Events.EventTypeCache.flush()
:ok
......@@ -23,7 +26,11 @@ defmodule PlasmaHS.RoomServerTests do
test "create room succeed with valid request" do
sender = insert(:user)
res = RoomServer.create_room(%{sender_id: sender.id})
IO.inspect res
assert {:ok, state, pid} = RoomServer.create_room(
%{sender_id: sender.id, creation_content: %{
creator: sender.mx_user_id,
"m.federate": true,
room_version: @default_room_version
}})
end
end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment