Activate test for object validator that has not been running

This commit is contained in:
Mark Felder 2023-11-07 16:00:13 -05:00
parent 11c520607f
commit 8076deeeb4

View file

@ -6,15 +6,16 @@ defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.BareUriTest do
use Pleroma.DataCase, async: true
alias Pleroma.EctoType.ActivityPub.ObjectValidators.BareUri
alias Pleroma.EctoType.ActivityPub.ObjectValidators.SafeText
test "diaspora://" do
text = "diaspora://alice@fediverse.example/post/deadbeefdeadbeefdeadbeefdeadbeef"
assert {:ok, text} = BareUri.cast(text)
assert {:ok, ^text} = BareUri.cast(text)
end
test "nostr:" do
text = "nostr:note1gwdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef"
assert {:ok, text} = BareUri.cast(text)
assert {:ok, ^text} = BareUri.cast(text)
end
test "errors for non-URIs" do