diff options
| author | Lain Soykaf <lain@lain.com> | 2024-11-12 14:22:02 +0400 | 
|---|---|---|
| committer | Lain Soykaf <lain@lain.com> | 2024-11-12 14:22:02 +0400 | 
| commit | 5b3e4cf49bfc80579c6349dd9f81001142a7d3d0 (patch) | |
| tree | 582324de91c172ea3fafa37c299600209bb8d0a7 /test | |
| parent | 60ec42cb9c5f362e01ca2fb506ac153e00d5caa1 (diff) | |
| download | pleroma-5b3e4cf49bfc80579c6349dd9f81001142a7d3d0.tar.gz pleroma-5b3e4cf49bfc80579c6349dd9f81001142a7d3d0.zip  | |
B Providers/ActivityPub: Ensure that nothing explodes on unexpected input.
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/metadata/providers/activity_pub_test.exs | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pleroma/web/metadata/providers/activity_pub_test.exs b/test/pleroma/web/metadata/providers/activity_pub_test.exs index c379ec092..c5cf78a60 100644 --- a/test/pleroma/web/metadata/providers/activity_pub_test.exs +++ b/test/pleroma/web/metadata/providers/activity_pub_test.exs @@ -31,4 +31,10 @@ defmodule Pleroma.Web.Metadata.Providers.ActivityPubTest do                [rel: "alternate", type: "application/activity+json", href: object.data["id"]], []}             ] == result    end + +  test "it returns an empty array for anything else" do +    result = ActivityPub.build_tags(%{}) + +    assert result == [] +  end  end  | 
