projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'omit-nondiscoverable-from-search' into 'develop'
[akkoma]
/
test
/
web
/
admin_api
/
search_test.exs
diff --git
a/test/web/admin_api/search_test.exs
b/test/web/admin_api/search_test.exs
index b974cedd5a2dd7ce11566bef41b76a0534c2036e..d88867c5272e0242b0978d809999dcc6c2df191d 100644
(file)
--- a/
test/web/admin_api/search_test.exs
+++ b/
test/web/admin_api/search_test.exs
@@
-177,5
+177,14
@@
defmodule Pleroma.Web.AdminAPI.SearchTest do
assert total == 3
assert count == 1
end
+
+ test "it returns non-discoverable users" do
+ insert(:user)
+ insert(:user, discoverable: false)
+
+ {:ok, _results, total} = Search.user()
+
+ assert total == 2
+ end
end
end