added tests

This commit is contained in:
Maksim Pechnikov 2020-08-24 09:47:25 +03:00
commit 14ec12ac95
6 changed files with 182 additions and 68 deletions

View file

@ -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