blob: b597e6e0aa62587ff5ff8582cfc042a4f1ba5c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|