Merge branch 'feature/lists' into 'develop'
[akkoma] / test / web / common_api / common_api_test.exs
1 defmodule Pleroma.Web.CommonAPI.UtilsTest do
2 use Pleroma.DataCase
3 alias Pleroma.Web.CommonAPI
4
5 import Pleroma.Factory
6
7 test "it de-duplicates tags" do
8 user = insert(:user)
9 {:ok, activity} = CommonAPI.post(user, %{"status" => "#2hu #2HU"})
10
11 assert activity.data["object"]["tag"] == ["2hu"]
12 end
13 end