Skip to content

Commit

Permalink
Add formatting necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Jul 19, 2024
1 parent 9d8b5a9 commit 163429a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ Ready to run in production? Please [check our deployment guides](https://hexdocs

## Running Tests

`mix spec`
`mix test`

This will run all your tests and store your coverage data in `./cover`.

## Checking Formatting

`mix format` will format your code
`mix format --check-formatting` will tell you formatting that must be done.

## Build & Run Production Docker Image Locally

Build Docker Image: `docker build . -t dpul-collections`
Expand Down
1 change: 1 addition & 0 deletions lib/dpul_collections/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ defmodule DpulCollections.Application do
DpulCollectionsWeb.Endpoint.config_change(changed, removed)
:ok
end

# coveralls-ignore-end
end
3 changes: 2 additions & 1 deletion test/dpul_collections_web/controllers/error_html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule DpulCollectionsWeb.ErrorHTMLTest do
end

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

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

test "renders 500" do
Expand Down

0 comments on commit 163429a

Please sign in to comment.