Format files
authorMaxim Filippov <colixer@gmail.com>
Sun, 2 Dec 2018 19:08:53 +0000 (22:08 +0300)
committerMaxim Filippov <colixer@gmail.com>
Sun, 2 Dec 2018 19:08:53 +0000 (22:08 +0300)
test/web/twitter_api/twitter_api_controller_test.exs
test/web/twitter_api/twitter_api_test.exs

index a1eb09a05d7a70f5456cbaac454b961542764b44..2cae8a0711c543706845d85fd2d59b0ec0143005 100644 (file)
@@ -961,7 +961,9 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
 
       user = Repo.get!(User, user.id)
       assert user.name == "new name"
-      assert user.bio == "hi <span><a class='mention' href='#{user2.ap_id}'>@<span>#{user2.nickname}</span></a></span>"
+
+      assert user.bio ==
+               "hi <span><a class='mention' href='#{user2.ap_id}'>@<span>#{user2.nickname}</span></a></span>"
 
       assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user})
     end
index baeea5a9e6b2ec71cffc6ad0d65b1ee4e2287b59..28230699f3e29f33d3939436e4d187f71430011c 100644 (file)
@@ -280,7 +280,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
 
     {:ok, user2} = TwitterAPI.register_user(data2)
 
-    expected_text = "<span><a class='mention' href='#{user1.ap_id}'>@<span>john</span></a></span> test"
+    expected_text =
+      "<span><a class='mention' href='#{user1.ap_id}'>@<span>john</span></a></span> test"
 
     assert user2.bio == expected_text
   end