mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 02:48:42 +00:00

Obviously going to be expanded upon by quite a bit, but just wanted to get started with basic testing sooner rather than later.
18 lines
284 B
Elixir
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
|