diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-08 18:48:10 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-08 18:48:10 +0700 |
commit | 9abf832b034bf3867272bd178d168c641129eff0 (patch) | |
tree | decc2cc28908a79df003ad668fb06cb74fa97159 /test/web/activity_pub | |
parent | c3d5c3513a3205313f0a2e28bb328ad5b48f2055 (diff) | |
parent | e19590c93f9adc5d743867b048aad9528810fc53 (diff) | |
download | pleroma-9abf832b034bf3867272bd178d168c641129eff0.tar.gz pleroma-9abf832b034bf3867272bd178d168c641129eff0.zip |
Merge remote-tracking branch 'pleroma/develop' into use-jobs-in-webpush
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r-- | test/web/activity_pub/transmogrifier_test.exs | 3 | ||||
-rw-r--r-- | test/web/activity_pub/utils_test.exs | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index 62b973c4f..47cffe257 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -1028,9 +1028,6 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do assert user.info.note_count == 1 assert user.follower_address == "https://niu.moe/users/rye/followers" - # Wait for the background task - :timer.sleep(1000) - user = User.get_by_id(user.id) assert user.info.note_count == 1 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 |