aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-04-08 11:03:10 +0000
committerlambda <lain@soykaf.club>2019-04-08 11:03:10 +0000
commitff9290836b97f7358b056709e0891e01d641dd6d (patch)
tree6cd6c3720479e4794cee607c749549515dc6407a /test
parent23067908de957bb1e7ad2c87e64ae91e4328cb87 (diff)
parent36c0a10fdf47efa5067456030bad3204c2088e93 (diff)
downloadpleroma-ff9290836b97f7358b056709e0891e01d641dd6d.tar.gz
Merge branch 'feature/697-language-tag-metadata' into 'develop'
adding language tag See merge request pleroma/pleroma!1034
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/utils_test.exs12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/web/activity_pub/utils_test.exs b/test/web/activity_pub/utils_test.exs
index 6b9961d82..758214e68 100644
--- a/test/web/activity_pub/utils_test.exs
+++ b/test/web/activity_pub/utils_test.exs
@@ -193,4 +193,16 @@ defmodule Pleroma.Web.ActivityPub.UtilsTest do
assert Utils.fetch_ordered_collection("http://example.com/outbox", 5) == [0, 1]
end
end
+
+ test "make_json_ld_header/0" do
+ assert Utils.make_json_ld_header() == %{
+ "@context" => [
+ "https://www.w3.org/ns/activitystreams",
+ "http://localhost:4001/schemas/litepub-0.1.jsonld",
+ %{
+ "@language" => "und"
+ }
+ ]
+ }
+ end
end