diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-05-16 17:54:24 +0700 |
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-05-16 17:54:24 +0700 |
| commit | fc7246d7159a97a8b9bb878e848db6f8ac0df988 (patch) | |
| tree | 7d03e1bc53e376eb21c68a8b543cb06de246d4b7 /test/web/activity_pub | |
| parent | a7a8f3bc2c3bb748f060812751a88873401354dd (diff) | |
| parent | a2771869a3b9851edea4961314c7944f3823f754 (diff) | |
| download | pleroma-fc7246d7159a97a8b9bb878e848db6f8ac0df988.tar.gz pleroma-fc7246d7159a97a8b9bb878e848db6f8ac0df988.zip | |
Merge remote-tracking branch 'pleroma/develop' into feature/addressable-lists
Diffstat (limited to 'test/web/activity_pub')
| -rw-r--r-- | test/web/activity_pub/visibilty_test.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/web/activity_pub/visibilty_test.exs b/test/web/activity_pub/visibilty_test.exs index 24b96c4aa..9c03c8be2 100644 --- a/test/web/activity_pub/visibilty_test.exs +++ b/test/web/activity_pub/visibilty_test.exs @@ -95,4 +95,16 @@ defmodule Pleroma.Web.ActivityPub.VisibilityTest do refute Visibility.visible_for_user?(private, unrelated) refute Visibility.visible_for_user?(direct, unrelated) end + + test "get_visibility", %{ + public: public, + private: private, + direct: direct, + unlisted: unlisted + } do + assert Visibility.get_visibility(public) == "public" + assert Visibility.get_visibility(private) == "private" + assert Visibility.get_visibility(direct) == "direct" + assert Visibility.get_visibility(unlisted) == "unlisted" + end end |
