aboutsummaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-05-30 10:29:08 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-05-30 10:29:08 +0300
commit24f40b8a26f95ee7f50b6023176d361660ceb35c (patch)
tree138bc345dd6ff65a8b91bec501dc8f32f9f239ea /test/web
parent78c80a261a5450a248c24f6d7d39bc59aed1ff88 (diff)
downloadpleroma-24f40b8a26f95ee7f50b6023176d361660ceb35c.tar.gz
[#1794] Fixed search query splitting regex to deal with Unicode. Adjusted a test.
Diffstat (limited to 'test/web')
-rw-r--r--test/web/mastodon_api/controllers/search_controller_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/search_controller_test.exs b/test/web/mastodon_api/controllers/search_controller_test.exs
index 498290377..84d46895e 100644
--- 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)
+ assert results["hashtags"] == [
+ %{"name" => "天子", "url" => "#{Web.base_url()}/tag/天子"}
+ ]
+
[status] = results["statuses"]
assert status["id"] == to_string(activity.id)
end