Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Update code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgoettschkes committed Oct 29, 2023
1 parent a3dc778 commit a0b1f92
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Config
# manifest is generated by the `mix assets.deploy` task,
# which you should run after static files are built and
# before starting your production server.
config :workera_spawners, WorkeraSpawnersWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
config :workera_spawners, WorkeraSpawnersWeb.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json"

# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: WorkeraSpawners.Finch
Expand Down
3 changes: 1 addition & 2 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ config :workera_spawners, WorkeraSpawnersWeb.Endpoint,
server: false

# In test we don't send emails.
config :workera_spawners, WorkeraSpawners.Mailer,
adapter: Swoosh.Adapters.Test
config :workera_spawners, WorkeraSpawners.Mailer, adapter: Swoosh.Adapters.Test

# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false
Expand Down
3 changes: 2 additions & 1 deletion test/workera_spawners_web/controllers/error_html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule WorkeraSpawnersWeb.ErrorHTMLTest do
end

test "renders 500.html" do
assert render_to_string(WorkeraSpawnersWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
assert render_to_string(WorkeraSpawnersWeb.ErrorHTML, "500", "html", []) ==
"Internal Server Error"
end
end
4 changes: 3 additions & 1 deletion test/workera_spawners_web/controllers/error_json_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ defmodule WorkeraSpawnersWeb.ErrorJSONTest do
use WorkeraSpawnersWeb.ConnCase, async: true

test "renders 404" do
assert WorkeraSpawnersWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
assert WorkeraSpawnersWeb.ErrorJSON.render("404.json", %{}) == %{
errors: %{detail: "Not Found"}
}
end

test "renders 500" do
Expand Down

0 comments on commit a0b1f92

Please sign in to comment.