diff options
| author | lain <lain@soykaf.club> | 2020-04-20 14:08:54 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-04-20 14:08:54 +0200 |
| commit | 7e53da250e3b41e01073148efea0fc4f49dea9d5 (patch) | |
| tree | 91a692a3e7fcf703241b2fea4398ea7c32f07b48 /test/web/activity_pub | |
| parent | b836d3d104f75841d71f9cf7c5c8cb5c07ba7294 (diff) | |
| download | pleroma-7e53da250e3b41e01073148efea0fc4f49dea9d5.tar.gz pleroma-7e53da250e3b41e01073148efea0fc4f49dea9d5.zip | |
ChatMessage: Support emoji.
Diffstat (limited to 'test/web/activity_pub')
| -rw-r--r-- | test/web/activity_pub/object_validator_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/activity_pub/object_validator_test.exs b/test/web/activity_pub/object_validator_test.exs index 3ac5ecaf4..8230ae0d9 100644 --- a/test/web/activity_pub/object_validator_test.exs +++ b/test/web/activity_pub/object_validator_test.exs @@ -15,13 +15,15 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidatorTest do user = insert(:user) recipient = insert(:user, local: false) - {:ok, valid_chat_message, _} = Builder.chat_message(user, recipient.ap_id, "hey") + {:ok, valid_chat_message, _} = Builder.chat_message(user, recipient.ap_id, "hey :firefox:") %{user: user, recipient: recipient, valid_chat_message: valid_chat_message} end test "validates for a basic object we build", %{valid_chat_message: valid_chat_message} do - assert {:ok, _object, _meta} = ObjectValidator.validate(valid_chat_message, []) + assert {:ok, object, _meta} = ObjectValidator.validate(valid_chat_message, []) + + assert object == valid_chat_message end test "does not validate if the message is longer than the remote_limit", %{ |
