EmojiReactValidator: apply lanodan's suggestions

These changes make the encoding for the fully-qualified heart emoji very visible in editors.
This commit is contained in:
Haelwenn 2022-07-04 00:25:54 +00:00 committed by Hélène
parent 11f9f2ef27
commit 8c78fef56f

View file

@ -55,12 +55,12 @@ test "it works for incoming unqualified emoji reactions" do
assert data["id"] == "http://mastodon.example.org/users/admin#reactions/2"
assert data["object"] == activity.data["object"]
# heart emoji with added emoji variation sequence
assert data["content"] == ""
assert data["content"] == "\uFE0F"
object = Object.get_by_ap_id(data["object"])
assert object.data["reaction_count"] == 1
assert match?([["", _]], object.data["reactions"])
assert match?([["\uFE0F", _]], object.data["reactions"])
end
test "it reject invalid emoji reactions" do