diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-11-08 16:23:58 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-11-08 16:23:58 +0000 |
commit | 59cf7cf235a50abb8a1fd30ea7fd10443e533658 (patch) | |
tree | a6407b34e6fe6307ccd0fd451bbc362c0dbe16a0 /test | |
parent | 4d627a5117bebc5eb298879d3fb3ccdb9801e077 (diff) | |
parent | 34bd411781c598386f35397eb0affe124390c066 (diff) | |
download | pleroma-59cf7cf235a50abb8a1fd30ea7fd10443e533658.tar.gz |
Merge branch 'small-jsonld-refactor' into 'develop'
Small jsonld refactor
See merge request pleroma/pleroma!433
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/transmogrifier_test.exs | 4 | ||||
-rw-r--r-- | test/web/activity_pub/views/object_view_test.exs | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index 6a6f2a44c..07ff1deeb 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -695,7 +695,9 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do {:ok, activity} = CommonAPI.post(user, %{"status" => "hey"}) {:ok, modified} = Transmogrifier.prepare_outgoing(activity.data) - assert modified["@context"] == "https://www.w3.org/ns/activitystreams" + assert modified["@context"] == + Pleroma.Web.ActivityPub.Utils.make_json_ld_header()["@context"] + assert modified["object"]["conversation"] == modified["context"] end diff --git a/test/web/activity_pub/views/object_view_test.exs b/test/web/activity_pub/views/object_view_test.exs index 6a1311be7..7e08dff5d 100644 --- a/test/web/activity_pub/views/object_view_test.exs +++ b/test/web/activity_pub/views/object_view_test.exs @@ -13,5 +13,6 @@ defmodule Pleroma.Web.ActivityPub.ObjectViewTest do assert result["to"] == note.data["to"] assert result["content"] == note.data["content"] assert result["type"] == "Note" + assert result["@context"] end end |