Test that a Note from Roadhouse validates

This commit is contained in:
Alex Gleason 2022-02-02 10:38:30 -06:00
commit 61dfeca1cc
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 120 additions and 0 deletions

View file

@ -32,4 +32,15 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ArticleNotePageValidatorTest
%{valid?: true} = ArticleNotePageValidator.cast_and_validate(note)
end
end
test "a Note from Roadhouse validates" do
insert(:user, ap_id: "https://macgirvin.com/channel/mike")
%{"object" => note} =
"test/fixtures/roadhouse-create-activity.json"
|> File.read!()
|> Jason.decode!()
%{valid?: true} = ArticleNotePageValidator.cast_and_validate(note)
end
end