Skip to content

Commit 6e5c195

Browse files
committed
fix: apply format
1 parent 41c7c8e commit 6e5c195

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

lib/elixir_phoenix_starter/application.ex

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ defmodule ElixirPhoenixStarter.Application do
1010
children = [
1111
ElixirPhoenixStarterWeb.Telemetry,
1212
ElixirPhoenixStarter.Repo,
13-
{DNSCluster, query: Application.get_env(:elixir_phoenix_starter, :dns_cluster_query) || :ignore},
13+
{DNSCluster,
14+
query: Application.get_env(:elixir_phoenix_starter, :dns_cluster_query) || :ignore},
1415
{Phoenix.PubSub, name: ElixirPhoenixStarter.PubSub},
1516
# Start the Finch HTTP client for sending emails
1617
{Finch, name: ElixirPhoenixStarter.Finch},

test/elixir_phoenix_starter_web/controllers/error_html_test.exs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defmodule ElixirPhoenixStarterWeb.ErrorHTMLTest do
99
end
1010

1111
test "renders 500.html" do
12-
assert render_to_string(ElixirPhoenixStarterWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
12+
assert render_to_string(ElixirPhoenixStarterWeb.ErrorHTML, "500", "html", []) ==
13+
"Internal Server Error"
1314
end
1415
end

test/elixir_phoenix_starter_web/controllers/error_json_test.exs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ defmodule ElixirPhoenixStarterWeb.ErrorJSONTest do
22
use ElixirPhoenixStarterWeb.ConnCase, async: true
33

44
test "renders 404" do
5-
assert ElixirPhoenixStarterWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
5+
assert ElixirPhoenixStarterWeb.ErrorJSON.render("404.json", %{}) == %{
6+
errors: %{detail: "Not Found"}
7+
}
68
end
79

810
test "renders 500" do

test/support/data_case.ex

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ defmodule ElixirPhoenixStarter.DataCase do
3636
Sets up the sandbox based on the test tags.
3737
"""
3838
def setup_sandbox(tags) do
39-
pid = Ecto.Adapters.SQL.Sandbox.start_owner!(ElixirPhoenixStarter.Repo, shared: not tags[:async])
39+
pid =
40+
Ecto.Adapters.SQL.Sandbox.start_owner!(ElixirPhoenixStarter.Repo, shared: not tags[:async])
41+
4042
on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
4143
end
4244

0 commit comments

Comments
 (0)