1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-20 10:58:42 +00:00
farside/test/privacy_revolver_test.exs
Ben Busby e87973c5e5
Add basic router test
Obviously going to be expanded upon by quite a bit, but just wanted to
get started with basic testing sooner rather than later.
2021-10-26 00:23:31 -06:00

18 lines
284 B
Elixir

defmodule PrivacyRevolverTest do
use ExUnit.Case
use Plug.Test
alias PrivacyRevolver.Router
@opts Router.init([])
test "/" do
conn =
:get
|> conn("/", "")
|> Router.call(@opts)
assert conn.state == :sent
assert conn.status == 200
end
end