test/pleroma/web/common_api_test.exs: Strip : around emoji key-name
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 5 Apr 2021 16:57:14 +0000 (18:57 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 5 Apr 2021 17:25:55 +0000 (19:25 +0200)
test/pleroma/web/common_api_test.exs

index 6619f8fc8c7b0fb900d2d86deca01bb5df59d0a3..86c12f0b2fd5ba7fa1079f7884c8299790fbb151 100644 (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