fix: add test coverage for api

This commit is contained in:
guarzo
2025-07-12 22:28:59 +00:00
parent 63f13711cc
commit 7b9e2c4fd9
61 changed files with 5657 additions and 5693 deletions

View File

@@ -33,7 +33,7 @@ defmodule WandererAppWeb.Helpers.APIUtils do
case Ecto.UUID.cast(id) do
{:ok, _} -> {:ok, id}
:error -> {:error, "Invalid UUID format for map_id: #{id}"}
:error -> {:error, "Invalid UUID format for map_id: #{inspect(id)}"}
end
has_slug ->
@@ -41,7 +41,7 @@ defmodule WandererAppWeb.Helpers.APIUtils do
case MapApi.get_map_by_slug(slug) do
{:ok, %{id: id}} -> {:ok, id}
_ -> {:error, "No map found for slug=#{slug}"}
_ -> {:error, "No map found for slug=#{inspect(slug)}"}
end
true ->