diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-30 10:29:08 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-30 10:29:08 +0300 |
commit | 24f40b8a26f95ee7f50b6023176d361660ceb35c (patch) | |
tree | 138bc345dd6ff65a8b91bec501dc8f32f9f239ea /test/web/mastodon_api/controllers | |
parent | 78c80a261a5450a248c24f6d7d39bc59aed1ff88 (diff) | |
download | pleroma-24f40b8a26f95ee7f50b6023176d361660ceb35c.tar.gz pleroma-24f40b8a26f95ee7f50b6023176d361660ceb35c.zip |
[#1794] Fixed search query splitting regex to deal with Unicode. Adjusted a test.
Diffstat (limited to 'test/web/mastodon_api/controllers')
-rw-r--r-- | test/web/mastodon_api/controllers/search_controller_test.exs | 4 |
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 |