aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2019-09-13 16:15:19 +0300
committereugenijm <eugenijm@protonmail.com>2019-09-23 16:19:21 +0300
commitaafb29c58978cbd8dbea2898b93bdab9979b5646 (patch)
tree9fa2c156cf4e5a8554664c8bc5a40e5f4ead329c /test/unit/specs
parent9b163d281670e0c0a589adce46727284fbcba0ad (diff)
Added a setting to hide follow/follower count from the user profile
Diffstat (limited to 'test/unit/specs')
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
index 20e03cb0..736b842c 100644
--- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
+++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
@@ -278,10 +278,12 @@ describe('API Entities normalizer', () => {
})
it('adds hide_follows and hide_followers user settings', () => {
- const user = makeMockUserMasto({ pleroma: { hide_followers: true, hide_follows: false } })
+ const user = makeMockUserMasto({ pleroma: { hide_followers: true, hide_follows: false, hide_followers_count: false, hide_follows_count: true } })
expect(parseUser(user)).to.have.property('hide_followers', true)
expect(parseUser(user)).to.have.property('hide_follows', false)
+ expect(parseUser(user)).to.have.property('hide_followers_count', false)
+ expect(parseUser(user)).to.have.property('hide_follows_count', true)
})
})