Test friends timeline more thoroughly.
authorRoger Braun <roger@rogerbraun.net>
Wed, 12 Apr 2017 14:53:46 +0000 (16:53 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 12 Apr 2017 14:53:46 +0000 (16:53 +0200)
test/web/twitter_api/twitter_api_test.exs

index dcb38b8b16995ea78cd32c8eabc7a9922e37a985..e8853a9100c249f05aaa98f2c06376ec09934398 100644 (file)
@@ -93,6 +93,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
 
     assert length(statuses) == 2
     assert Enum.at(statuses, 0) == ActivityRepresenter.to_map(activity, %{user: activity_user})
+    assert Enum.at(statuses, 1) == ActivityRepresenter.to_map(direct_activity, %{user: activity_user, mentioned: [user]})
   end
 
   test "fetch a single status" do