Skip to content

Commit

Permalink
updated socket tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nesimtunc committed May 1, 2020
1 parent 1e7d52c commit 99c30f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/coliving_web/channels/lobby_channel_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ defmodule ColivingWeb.LobbyChannelTests do
end

test "enter a room", %{socket: socket} do
push(socket, "enter", %{})
assert_push "enter", %{}
assert_broadcast "enter", %{}
push(socket, "inc", %{})
assert_push "inc", %{}
assert_broadcast "inc", %{}
end

test "leave a room", %{socket: socket} do
push(socket, "left", %{})
assert_push "left", %{}
assert_broadcast "left", %{}
push(socket, "dec", %{})
assert_push "dec", %{}
assert_broadcast "dec", %{}
end
end

0 comments on commit 99c30f2

Please sign in to comment.