1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ActivityPub.ObjectValidators.TagValidatorTest do
6 use Pleroma.DataCase, async: true
8 alias Pleroma.Web.ActivityPub.ObjectValidators.TagValidator
10 test "it doesn't error on unusual objects" do
12 "@context" => "https://www.w3.org/ns/activitystreams",
14 "work" => "https://bookwyrm.com/book/9"
17 assert %{valid?: true, action: :ignore} = TagValidator.cast_and_validate(edition)