mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-21 23:50:59 +00:00
change tests description
This commit is contained in:
parent
4d0665679c
commit
dcaf024042
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ defmodule Phoenix.Presence.ClientTest do
|
||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
|
||||||
test "When a new process is tracked, a topic key is added to the topics state" do
|
test "A topic key is added to the topics state when a new process is tracked" do
|
||||||
presence_key = 1
|
presence_key = 1
|
||||||
topic = topic(100)
|
topic = topic(100)
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ defmodule Phoenix.Presence.ClientTest do
|
||||||
assert %{topics: %{}} = client_state
|
assert %{topics: %{}} = client_state
|
||||||
end
|
end
|
||||||
|
|
||||||
test "When there are two presences for the same key, the metas are accumulated" do
|
test "metas are accumulated when there are two presences for the same key" do
|
||||||
presence_key = 1
|
presence_key = 1
|
||||||
topic = topic(100)
|
topic = topic(100)
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ defmodule Phoenix.Presence.ClientTest do
|
||||||
assert %{topics: %{^topic => %{"1" => [%{m1: :m1}, %{m2: :m2}]}}} = client_state
|
assert %{topics: %{^topic => %{"1" => [%{m1: :m1}, %{m2: :m2}]}}} = client_state
|
||||||
end
|
end
|
||||||
|
|
||||||
test "When there are two presences for the same key and one leaves, just the meta is deleted" do
|
test "Just one meta is deleted when there are two presences for the same key and one leaves" do
|
||||||
presence_key = 1
|
presence_key = 1
|
||||||
topic = topic(100)
|
topic = topic(100)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue