feat(server): host channel with token auth and metric events
This commit is contained in:
parent
d9a52db4ea
commit
61595e0293
3 changed files with 182 additions and 0 deletions
24
server/test/support/channel_case.ex
Normal file
24
server/test/support/channel_case.ex
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
defmodule ServerWeb.ChannelCase do
|
||||
@moduledoc """
|
||||
Test helpers for Phoenix Channels.
|
||||
|
||||
Imports conveniences for testing channels and the sandbox-based Repo so tests
|
||||
run concurrently and are isolated.
|
||||
"""
|
||||
|
||||
use ExUnit.CaseTemplate
|
||||
|
||||
using do
|
||||
quote do
|
||||
import Phoenix.ChannelTest
|
||||
import ServerWeb.ChannelCase
|
||||
|
||||
@endpoint ServerWeb.Endpoint
|
||||
end
|
||||
end
|
||||
|
||||
setup tags do
|
||||
Server.DataCase.setup_sandbox(tags)
|
||||
:ok
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue