Merge branch 'develop' into feature/bulk-confirmation
[akkoma] / test / web / admin_api / search_test.exs
index b974cedd5a2dd7ce11566bef41b76a0534c2036e..d88867c5272e0242b0978d809999dcc6c2df191d 100644 (file)
@@ -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