Skip to content
Snippets Groups Projects
Commit 32b16494 authored by kaniini's avatar kaniini
Browse files

test: user: add a test for whether user search returns a user or not

parent da44cdd3
No related branches found
No related tags found
No related merge requests found
......@@ -878,6 +878,16 @@ defmodule Pleroma.UserTest do
assert [] == User.search(query)
end)
end
test "works with URIs" do
results = User.search("http://mastodon.example.org/users/admin", true)
result = results |> List.first()
user = User.get_by_ap_id("http://mastodon.example.org/users/admin")
assert length(results) == 1
assert user == result |> Map.put(:search_rank, nil)
end
end
test "auth_active?/1 works correctly" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment