diff options
| author | Eugenij <eugenijm@protonmail.com> | 2019-07-07 10:20:55 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-07-07 10:20:55 +0000 |
| commit | 14ec12b4f62695d0cf36acb3a9ace6685763aa65 (patch) | |
| tree | 19d2d5b4b804beaa6168b559978f2710d92452d0 /test | |
| parent | e80ed386be1522c03f2dbc7b719b2c6a5b920b16 (diff) | |
Set hide_follows and hide_followers settings when parsing Mastodon format
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js | 7 |
1 files changed, 7 insertions, 0 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 3d34c5cc..b3491c61 100644 --- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js +++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js @@ -282,6 +282,13 @@ describe('API Entities normalizer', () => { expect(parsedUser).to.have.property('description_html').that.contains('<img') }) + + it('adds hide_follows and hide_followers user settings', () => { + const user = makeMockUserMasto({ pleroma: { hide_followers: true, hide_follows: false } }) + + expect(parseUser(user)).to.have.property('hide_followers', true) + expect(parseUser(user)).to.have.property('hide_follows', false) + }) }) // We currently use QvitterAPI notifications only, and especially due to MastoAPI lacking is_seen, support for MastoAPI |
