diff options
| author | lain <lain@soykaf.club> | 2019-05-15 17:47:29 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-05-15 17:47:29 +0200 |
| commit | f168a1cbdc318ffaa2d8bc9fb561eb3dfdfb89d9 (patch) | |
| tree | 3c208baf52e27859491cce07954ac9b1198cbc8f /test/web/activity_pub/visibilty_test.exs | |
| parent | 786f2c7a849bc4fa2bd4aac18de59ef6b2ed18c5 (diff) | |
| parent | 62516be9c462ca206163eaf7822f9ee5c2470453 (diff) | |
| download | pleroma-f168a1cbdc318ffaa2d8bc9fb561eb3dfdfb89d9.tar.gz pleroma-f168a1cbdc318ffaa2d8bc9fb561eb3dfdfb89d9.zip | |
Merge remote-tracking branch 'origin/develop' into conversations-import
Diffstat (limited to 'test/web/activity_pub/visibilty_test.exs')
| -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 ff0e72401..e2584f635 100644 --- a/test/web/activity_pub/visibilty_test.exs +++ b/test/web/activity_pub/visibilty_test.exs @@ -105,4 +105,16 @@ defmodule Pleroma.Web.ActivityPub.VisibilityTest do Cachex.clear(:user_cache) refute Visibility.is_private?(direct) 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 |
