summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-09-12 09:34:39 +0200
committerRoger Braun <roger@rogerbraun.net>2017-09-12 09:34:39 +0200
commit44a650235bcb49900a84f50b2ee4d75593231c38 (patch)
treec6beeeca47f5fcccbd5b7755aeff7d164b428b5b /test
parentcda01285f4f36ffaac0034d6f0a5da64b4a26a58 (diff)
downloadpleroma-44a650235bcb49900a84f50b2ee4d75593231c38.tar.gz
pleroma-44a650235bcb49900a84f50b2ee4d75593231c38.zip
MastoAPI: Remove domain ending from account name.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/account_view_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs
index 59fac6d95..0106fbcc0 100644
--- a/test/web/mastodon_api/account_view_test.exs
+++ b/test/web/mastodon_api/account_view_test.exs
@@ -4,11 +4,11 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
alias Pleroma.Web.MastodonAPI.AccountView
test "Represent a user account" do
- user = insert(:user, %{info: %{"note_count" => 5, "follower_count" => 3}})
+ user = insert(:user, %{info: %{"note_count" => 5, "follower_count" => 3}, nickname: "shp@shitposter.club"})
expected = %{
id: user.id,
- username: user.nickname,
+ username: "shp",
acct: user.nickname,
display_name: user.name,
locked: false,