summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
blob: a5da271b31e52696676f0a78db940f5769298a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Pleroma.Web.CommonAPI.Test 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