Formatter pass

This commit is contained in:
Claudio Ortolina
2024-09-14 14:19:45 +01:00
parent 170f195aae
commit 705fd665d2
5 changed files with 31 additions and 7 deletions
@@ -9,6 +9,7 @@ defmodule MusicLibraryWeb.ErrorHTMLTest do
end
test "renders 500.html" do
assert render_to_string(MusicLibraryWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
assert render_to_string(MusicLibraryWeb.ErrorHTML, "500", "html", []) ==
"Internal Server Error"
end
end
@@ -4,8 +4,22 @@ defmodule MusicLibraryWeb.RecordLiveTest do
import Phoenix.LiveViewTest
import MusicLibrary.RecordsFixtures
@create_attrs %{type: :album, title: "some title", image: "some image", year: 42, musicbrainz_id: "7488a646-e31f-11e4-aace-600308960662", genres: ["option1", "option2"]}
@update_attrs %{type: :ep, title: "some updated title", image: "some updated image", year: 43, musicbrainz_id: "7488a646-e31f-11e4-aace-600308960668", genres: ["option1"]}
@create_attrs %{
type: :album,
title: "some title",
image: "some image",
year: 42,
musicbrainz_id: "7488a646-e31f-11e4-aace-600308960662",
genres: ["option1", "option2"]
}
@update_attrs %{
type: :ep,
title: "some updated title",
image: "some updated image",
year: 43,
musicbrainz_id: "7488a646-e31f-11e4-aace-600308960668",
genres: ["option1"]
}
@invalid_attrs %{type: nil, title: nil, image: nil, year: nil, musicbrainz_id: nil, genres: []}
defp create_record(_) do