Skip to content

Commit 159ef5a

Browse files
committed
Cleanup env
1 parent 20b118a commit 159ef5a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/serve_test.exs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ defmodule ServeTest do
22
use ExUnit.Case
33
doctest Serve
44

5+
setup_all do
6+
clear_env()
7+
on_exit(&clear_env/0)
8+
end
9+
10+
defp clear_env do
11+
Application.delete_env(:serve, :port)
12+
Application.delete_env(:serve, :path)
13+
Application.delete_env(:serve, :no_index)
14+
Application.delete_env(:serve, :open)
15+
end
16+
517
test "port/0 returns the default port" do
618
assert Serve.port() == 4444
719

0 commit comments

Comments
 (0)