added tests
This commit is contained in:
parent
0922791e4d
commit
14ec12ac95
6 changed files with 182 additions and 68 deletions
|
|
@ -56,6 +56,9 @@ defmodule Pleroma.Emoji do
|
|||
end
|
||||
end
|
||||
|
||||
@spec exist?(String.t()) :: boolean()
|
||||
def exist?(name), do: not is_nil(get(name))
|
||||
|
||||
@doc "Returns all the emojos!!"
|
||||
@spec get_all() :: list({String.t(), String.t(), String.t()})
|
||||
def get_all do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue