From 14ec12b4f62695d0cf36acb3a9ace6685763aa65 Mon Sep 17 00:00:00 2001 From: Eugenij Date: Sun, 7 Jul 2019 10:20:55 +0000 Subject: Set hide_follows and hide_followers settings when parsing Mastodon format --- .../specs/services/entity_normalizer/entity_normalizer.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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(' { + 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 -- cgit v1.2.3-70-g09d2