mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 05:49:54 +01:00
Mix format
This commit is contained in:
parent
0d342a35e3
commit
f3c118ca23
1 changed files with 9 additions and 3 deletions
|
@ -42,9 +42,15 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ArticleNotePageValidatorTest
|
|||
test "a note with a language validates" do
|
||||
user = insert(:user, %{ap_id: "https://mastodon.social/users/akkoma_ap_integration_tester"})
|
||||
note = File.read!("test/fixtures/mastodon/note_with_language.json") |> Jason.decode!()
|
||||
%{valid?: true, changes: %{ contentMap: %{
|
||||
"ja" => "<p>tag</p>",
|
||||
}}} = ArticleNotePageValidator.cast_and_validate(note)
|
||||
|
||||
%{
|
||||
valid?: true,
|
||||
changes: %{
|
||||
contentMap: %{
|
||||
"ja" => "<p>tag</p>"
|
||||
}
|
||||
}
|
||||
} = ArticleNotePageValidator.cast_and_validate(note)
|
||||
end
|
||||
|
||||
test "a note from factory validates" do
|
||||
|
|
Loading…
Reference in a new issue