projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
[akkoma]
/
test
/
web
/
mastodon_api
/
controllers
/
search_controller_test.exs
diff --git
a/test/web/mastodon_api/controllers/search_controller_test.exs
b/test/web/mastodon_api/controllers/search_controller_test.exs
index 49829037796930863e1112aa5308f9542cf728ed..84d46895edcb7b436cd57ed4022c0e597975211c 100644
(file)
--- a/
test/web/mastodon_api/controllers/search_controller_test.exs
+++ b/
test/web/mastodon_api/controllers/search_controller_test.exs
@@
-71,6
+71,10
@@
defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
get(conn, "/api/v2/search?q=天子")
|> json_response_and_validate_schema(200)
get(conn, "/api/v2/search?q=天子")
|> json_response_and_validate_schema(200)
+ assert results["hashtags"] == [
+ %{"name" => "天子", "url" => "#{Web.base_url()}/tag/天子"}
+ ]
+
[status] = results["statuses"]
assert status["id"] == to_string(activity.id)
end
[status] = results["statuses"]
assert status["id"] == to_string(activity.id)
end