test/pleroma/web/common_api_test.exs: Strip : around emoji key-name

This commit is contained in:
Haelwenn (lanodan) Monnier 2021-04-05 18:57:14 +02:00
parent 6d6bef64bf
commit 5ef4659b37
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE

View File

@ -539,8 +539,8 @@ defmodule Pleroma.Web.CommonAPITest do
spoiler_text: ":joker_smile:"
})
assert Object.normalize(reply_activity).data["emoji"][":joker_smile:"]
refute Object.normalize(reply_activity).data["emoji"][":joker_disapprove:"]
assert Object.normalize(reply_activity).data["emoji"]["joker_smile"]
refute Object.normalize(reply_activity).data["emoji"]["joker_disapprove"]
end
test "deactivated users can't post" do