Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Dec 10, 2024
1 parent b202b07 commit aeeed40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/beacon/router_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ defmodule Beacon.RouterTest do
assert Router.reachable?(config, host: valid_host)
end

test "with no specific host", %{config: config} do
assert Router.reachable?(config, host: nil)
end

test "do not match any existing host/path", %{config: config} do
refute Router.reachable?(config, host: nil, prefix: "/nested/invalid")
end
Expand Down

0 comments on commit aeeed40

Please sign in to comment.