fix aliases
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
shibao 2023-01-29 13:05:01 -05:00
parent 3ae890c193
commit 725df05521

View File

@ -21,8 +21,8 @@ defmodule Cannery.Fixtures do
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def valid_user_password, do: "hello world!"
@spec user_fixture() :: Accounts.User.t()
@spec user_fixture(attrs :: map()) :: Accounts.User.t()
@spec user_fixture() :: User.t()
@spec user_fixture(attrs :: map()) :: User.t()
def user_fixture(attrs \\ %{}) do
attrs
|> Enum.into(%{
@ -33,8 +33,8 @@ defmodule Cannery.Fixtures do
|> unwrap_ok_tuple()
end
@spec admin_fixture() :: Accounts.User.t()
@spec admin_fixture(attrs :: map()) :: Accounts.User.t()
@spec admin_fixture() :: User.t()
@spec admin_fixture(attrs :: map()) :: User.t()
def admin_fixture(attrs \\ %{}) do
attrs
|> Enum.into(%{