Add test for following with subscription
[akkoma] / test / pleroma / report_note_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.ReportNoteTest do
6 alias Pleroma.ReportNote
7 use Pleroma.DataCase, async: true
8 import Pleroma.Factory
9
10 test "create/3" do
11 user = insert(:user)
12 report = insert(:report_activity)
13 assert {:ok, note} = ReportNote.create(user.id, report.id, "naughty boy")
14 assert note.content == "naughty boy"
15 end
16 end