Add new Emoji Ecto.Type and fix emoji in Question
This commit is contained in:
parent
2ecc7d9230
commit
a142da3e4f
8 changed files with 105 additions and 9 deletions
|
|
@ -69,6 +69,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ChatValidationTest do
|
|||
assert {:ok, object, _meta} = ObjectValidator.validate(valid_chat_message, [])
|
||||
|
||||
assert Map.put(valid_chat_message, "attachment", nil) == object
|
||||
assert match?(%{"firefox" => _}, object["emoji"])
|
||||
end
|
||||
|
||||
test "validates for a basic object with an attachment", %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue