test: fix testing type

This commit is contained in:
Zach Daniel 2023-09-13 15:52:46 -04:00
parent 339a78ec98
commit 0ec762507f

View file

@ -40,7 +40,11 @@ defmodule AshGraphql.Test.Status do
:error :error
end end
def cast_stored(_, _), do: :error
@impl true @impl true
def dump_to_native(nil, _), do: {:ok, nil}
def dump_to_native(value, _) when is_atom(value) do def dump_to_native(value, _) when is_atom(value) do
{:ok, to_string(value)} {:ok, to_string(value)}
end end