summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_utils_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-24 18:37:58 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-24 18:37:58 +0400
commitc56c0a3d23929f166f4d95e5c6e96bbf0df8a35e (patch)
tree6b6fffe4faeebbf7e103d16a427f6f68774b44d5 /test/web/common_api/common_api_utils_test.exs
parent364eecc49f137ae3c7798ad240983591e27b134c (diff)
parent2430b9bf90d6fde71885f5f0f8be767526be6208 (diff)
downloadpleroma-c56c0a3d23929f166f4d95e5c6e96bbf0df8a35e.tar.gz
pleroma-c56c0a3d23929f166f4d95e5c6e96bbf0df8a35e.zip
Merge branch 'develop' into global-status-expiration
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
-rw-r--r--test/web/common_api/common_api_utils_test.exs20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs
index b21445fe9..18a3b3b87 100644
--- a/test/web/common_api/common_api_utils_test.exs
+++ b/test/web/common_api/common_api_utils_test.exs
@@ -335,26 +335,6 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
end
end
- describe "get_by_id_or_ap_id/1" do
- test "get activity by id" do
- activity = insert(:note_activity)
- %Pleroma.Activity{} = note = Utils.get_by_id_or_ap_id(activity.id)
- assert note.id == activity.id
- end
-
- test "get activity by ap_id" do
- activity = insert(:note_activity)
- %Pleroma.Activity{} = note = Utils.get_by_id_or_ap_id(activity.data["object"])
- assert note.id == activity.id
- end
-
- test "get activity by object when type isn't `Create` " do
- activity = insert(:like_activity)
- %Pleroma.Activity{} = like = Utils.get_by_id_or_ap_id(activity.id)
- assert like.data["object"] == activity.data["object"]
- end
- end
-
describe "to_master_date/1" do
test "removes microseconds from date (NaiveDateTime)" do
assert Utils.to_masto_date(~N[2015-01-23 23:50:07.123]) == "2015-01-23T23:50:07.000Z"