Browse Source

lint

tags/v0.9.9
Vald 5 years ago
parent
commit
028904c333
2 changed files with 6 additions and 4 deletions
  1. +3
    -3
      test/web/mastodon_api/mastodon_api_controller_test.exs
  2. +3
    -1
      test/web/twitter_api/twitter_api_controller_test.exs

+ 3
- 3
test/web/mastodon_api/mastodon_api_controller_test.exs View File

@@ -1271,9 +1271,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert user = json_response(conn, 200)

assert user["note"] ==
"I drink <a data-tag=\"cofe\" href=\"http://localhost:4001/tag/cofe\">#cofe</a> with <span><a data-user=\"#{user2.id}\" href=\"#{
user2.ap_id
}\">@<span>#{user2.nickname}</span></a></span>"
"I drink <a data-tag=\"cofe\" href=\"http://localhost:4001/tag/cofe\">#cofe</a> with <span><a data-user=\"#{
user2.id
}\" href=\"#{user2.ap_id}\">@<span>#{user2.nickname}</span></a></span>"
end

test "updates the user's locking status", %{conn: conn} do


+ 3
- 1
test/web/twitter_api/twitter_api_controller_test.exs View File

@@ -969,7 +969,9 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
assert user.name == "new name"

assert user.bio ==
"hi <span><a data-user='#{user2.id}' class='mention' href='#{user2.ap_id}'>@<span>#{user2.nickname}</span></a></span>"
"hi <span><a data-user='#{user2.id}' 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


Loading…
Cancel
Save