testsuite: twitter api: add summary where necessary
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 24 Jun 2018 06:23:19 +0000 (06:23 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 12 Jul 2018 16:12:25 +0000 (16:12 +0000)
test/web/twitter_api/representers/activity_representer_test.exs
test/web/twitter_api/views/activity_view_test.exs

index 7505093dd2d4c93fab5d23fb7c1ad0fb2fd164a3..3f85e028ba87ff62f8bb8be6b9d7e5ebaf9370f4 100644 (file)
@@ -155,7 +155,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
       "activity_type" => "post",
       "possibly_sensitive" => true,
       "uri" => activity.data["object"]["id"],
-      "visibility" => "direct"
+      "visibility" => "direct",
+      "summary" => "2hu"
     }
 
     assert ActivityRepresenter.to_map(activity, %{
index 5b2a7466bd6011bb79257ffd749490146b2b8bf4..a101e4ae8b96c8f29c68ad654eb06274ddcf45e8 100644 (file)
@@ -48,7 +48,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
       "text" => "Hey @shp!",
       "uri" => activity.data["object"]["id"],
       "user" => UserView.render("show.json", %{user: user}),
-      "visibility" => "direct"
+      "visibility" => "direct",
+      "summary" => nil
     }
 
     assert result == expected