We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b118a commit 159ef5aCopy full SHA for 159ef5a
test/serve_test.exs
@@ -2,6 +2,18 @@ defmodule ServeTest do
2
use ExUnit.Case
3
doctest Serve
4
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
16
17
test "port/0 returns the default port" do
18
assert Serve.port() == 4444
19
0 commit comments