[#394] View tests fix.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Thu, 6 Dec 2018 17:38:52 +0000 (20:38 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Thu, 6 Dec 2018 17:38:52 +0000 (20:38 +0300)
test/web/mastodon_api/account_view_test.exs
test/web/twitter_api/views/user_view_test.exs

index a2d3a254750511c023c7ff9bcf7a6ed47064b4e2..d6c9f58c890dcf8135ce2825cc908da480b18c01 100644 (file)
@@ -54,7 +54,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
         note: "",
         privacy: "public",
         sensitive: false
-      }
+      },
+      tags: []
     }
 
     assert expected == AccountView.render("account.json", %{user: user})
@@ -91,7 +92,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
         note: "",
         privacy: "public",
         sensitive: false
-      }
+      },
+      tags: []
     }
 
     assert expected == AccountView.render("account.json", %{user: user})
index e69ca24a9e6df860eb81a277a5977df912318207..0bd06f256d30f192c0b1c8717124e12667706062 100644 (file)
@@ -96,7 +96,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
       "locked" => false,
       "default_scope" => "public",
       "no_rich_text" => false,
-      "fields" => []
+      "fields" => [],
+      "tags" => []
     }
 
     assert represented == UserView.render("show.json", %{user: user})
@@ -137,7 +138,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
       "locked" => false,
       "default_scope" => "public",
       "no_rich_text" => false,
-      "fields" => []
+      "fields" => [],
+      "tags" => []
     }
 
     assert represented == UserView.render("show.json", %{user: user, for: follower})
@@ -179,7 +181,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
       "locked" => false,
       "default_scope" => "public",
       "no_rich_text" => false,
-      "fields" => []
+      "fields" => [],
+      "tags" => []
     }
 
     assert represented == UserView.render("show.json", %{user: follower, for: user})
@@ -228,7 +231,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
       "locked" => false,
       "default_scope" => "public",
       "no_rich_text" => false,
-      "fields" => []
+      "fields" => [],
+      "tags" => []
     }
 
     blocker = Repo.get(User, blocker.id)