From 99c30f2181a16f838b0d0fedbf4ced6917d8df97 Mon Sep 17 00:00:00 2001 From: Nesim TUNC Date: Fri, 1 May 2020 23:36:31 +0900 Subject: [PATCH] updated socket tests --- test/coliving_web/channels/lobby_channel_test.exs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/coliving_web/channels/lobby_channel_test.exs b/test/coliving_web/channels/lobby_channel_test.exs index 7ca1d3a..46a4d32 100644 --- a/test/coliving_web/channels/lobby_channel_test.exs +++ b/test/coliving_web/channels/lobby_channel_test.exs @@ -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