diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-12-04 05:01:21 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-12-04 05:01:21 +0000 |
commit | d6ab701a14f7c9fb4d59953648c425e04725fc62 (patch) | |
tree | 06fef5cc26af9a11fc40d1fcd380f9477cd24385 /test | |
parent | 419d4bd5e43248957ea66039231e3389c608368d (diff) | |
download | pleroma-d6ab701a14f7c9fb4d59953648c425e04725fc62.tar.gz |
formatting
Diffstat (limited to 'test')
-rw-r--r-- | test/object_test.exs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/object_test.exs b/test/object_test.exs index 3907748f7..dac6c3be7 100644 --- a/test/object_test.exs +++ b/test/object_test.exs @@ -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 |