Skip to content
Snippets Groups Projects
Commit aaa9fed1 authored by Maxim Filippov's avatar Maxim Filippov :new_moon_with_face:
Browse files

Fix user_test

parent f384a9a2
Branches
No related tags found
No related merge requests found
......@@ -901,7 +901,7 @@ defmodule Pleroma.UserTest do
{:ok, follower} = User.follow(follower, u1)
{:ok, u1} = User.follow(u1, friend)
assert [friend.id, follower.id, u2.id] == Enum.map(User.search("doe", false, u1), & &1.id)
assert [friend.id, follower.id, u2.id] == Enum.map(User.search("doe", resolve: false, for_user: u1), & &1.id)
end
test "finds a user whose name is nil" do
......@@ -923,7 +923,7 @@ defmodule Pleroma.UserTest do
end
test "works with URIs" do
results = User.search("http://mastodon.example.org/users/admin", true)
results = User.search("http://mastodon.example.org/users/admin", resolve: true)
result = results |> List.first()
user = User.get_by_ap_id("http://mastodon.example.org/users/admin")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment