projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
activitypub: transmogrifier: ensure as:Public activities are delivered to followers
[akkoma]
/
test
/
object_test.exs
diff --git
a/test/object_test.exs
b/test/object_test.exs
index 0effb9505767d68b251b31f29b2423858184e3c9..911757d57c601e83f5e54dbd668247d6e818c2ab 100644
(file)
--- a/
test/object_test.exs
+++ b/
test/object_test.exs
@@
-5,7
+5,8
@@
defmodule Pleroma.ObjectTest do
use Pleroma.DataCase
import Pleroma.Factory
defmodule Pleroma.ObjectTest do
use Pleroma.DataCase
import Pleroma.Factory
- alias Pleroma.{Repo, Object}
+ alias Pleroma.Object
+ alias Pleroma.Repo
test "returns an object by it's AP id" do
object = insert(:note)
test "returns an object by it's AP id" do
object = insert(:note)
@@
-36,6
+37,8
@@
defmodule Pleroma.ObjectTest do
found_object = Object.get_by_ap_id(object.data["id"])
refute object == found_object
found_object = Object.get_by_ap_id(object.data["id"])
refute object == found_object
+
+ assert found_object.data["type"] == "Tombstone"
end
test "ensures cache is cleared for the object" do
end
test "ensures cache is cleared for the object" do
@@
-51,6
+54,8
@@
defmodule Pleroma.ObjectTest do
cached_object = Object.get_cached_by_ap_id(object.data["id"])
refute object == cached_object
cached_object = Object.get_cached_by_ap_id(object.data["id"])
refute object == cached_object
+
+ assert cached_object.data["type"] == "Tombstone"
end
end
end
end
end
end