From aeeed4042c1cf49bc3b2ad68eea603ce0c82155b Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Tue, 10 Dec 2024 17:05:19 -0500 Subject: [PATCH] one more test --- test/beacon/router_test.exs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/beacon/router_test.exs b/test/beacon/router_test.exs index b4023987..328f429f 100644 --- a/test/beacon/router_test.exs +++ b/test/beacon/router_test.exs @@ -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