X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Fweb%2Factivity_pub%2Fobject_validators%2Farticle_note_page_validator_test.exs;h=62ac5e0510ff3f32afbe1bed6997ab4ed13e9811;hb=90088cce11cf2d636f2741b2e340ae9dc518406d;hp=ade2256c3475d428f42de0a09cd51df3c867b1f3;hpb=ff5793198ff9068c49de12e4dfb229b9de8d38f8;p=akkoma diff --git a/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs b/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs index ade2256c3..62ac5e051 100644 --- a/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs +++ b/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs @@ -40,11 +40,17 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ArticleNotePageValidatorTest end test "a note with a language validates" do - user = insert(:user, %{ap_id: "https://mastodon.social/users/akkoma_ap_integration_tester"}) + 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" => "

tag

", - }}} = ArticleNotePageValidator.cast_and_validate(note) + + %{ + valid?: true, + changes: %{ + contentMap: %{ + "ja" => "

tag

" + } + } + } = ArticleNotePageValidator.cast_and_validate(note) end test "a note from factory validates" do