formatting
This commit is contained in:
parent
419d4bd5e4
commit
d6ab701a14
2 changed files with 9 additions and 4 deletions
|
|
@ -52,19 +52,23 @@ defmodule Pleroma.ObjectTest do
|
|||
|
||||
describe "normalizer" do
|
||||
test "fetches unknown objects by default" do
|
||||
%Object{} = object = Object.normalize("http://mastodon.example.org/@admin/99541947525187367")
|
||||
%Object{} =
|
||||
object = Object.normalize("http://mastodon.example.org/@admin/99541947525187367")
|
||||
|
||||
assert object.data["url"] == "http://mastodon.example.org/@admin/99541947525187367"
|
||||
end
|
||||
|
||||
test "fetches unknown objects when fetch_remote is explicitly true" do
|
||||
%Object{} = object = Object.normalize("http://mastodon.example.org/@admin/99541947525187367", true)
|
||||
%Object{} =
|
||||
object = Object.normalize("http://mastodon.example.org/@admin/99541947525187367", true)
|
||||
|
||||
assert object.data["url"] == "http://mastodon.example.org/@admin/99541947525187367"
|
||||
end
|
||||
|
||||
test "does not fetch unknown objects when fetch_remote is false" do
|
||||
assert is_nil(Object.normalize("http://mastodon.example.org/@admin/99541947525187367", false))
|
||||
assert is_nil(
|
||||
Object.normalize("http://mastodon.example.org/@admin/99541947525187367", false)
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue