You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
319 B
14 lines
319 B
6 years ago
|
defmodule Pleroma.Web.CommonAPI.UtilsTest do
|
||
|
use Pleroma.DataCase
|
||
|
alias Pleroma.Web.CommonAPI
|
||
|
|
||
|
import Pleroma.Factory
|
||
|
|
||
|
test "it de-duplicates tags" do
|
||
|
user = insert(:user)
|
||
|
{:ok, activity} = CommonAPI.post(user, %{"status" => "#2hu #2HU"})
|
||
|
|
||
|
assert activity.data["object"]["tag"] == ["2hu"]
|
||
|
end
|
||
|
end
|