aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-01-18 13:44:31 +0000
committerShpuld Shpludson <shp@cock.li>2021-01-18 13:44:31 +0000
commit320418d524a33c20d7d769c8d67a25be81f251ec (patch)
treeb15c3cb41b469e732db1060d9962ce80b10c9562 /test/unit/specs
parenta39866308cd7c8cb0d30a04a5215d1fae8bf8d47 (diff)
parent8f55cb151c546eae56c782c2ed4b292b04950e03 (diff)
Merge branch 'rc/2.2.3' into 'master'
rc 2.2.3 to MASTER See merge request pleroma/pleroma-fe!1328
Diffstat (limited to 'test/unit/specs')
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js6
1 files changed, 6 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 e1f7a958..a3f49b2c 100644
--- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
+++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
@@ -311,6 +311,12 @@ describe('API Entities normalizer', () => {
expect(parseUser(user)).to.have.property('hide_followers_count', false)
expect(parseUser(user)).to.have.property('hide_follows_count', true)
})
+
+ it('converts IDN to unicode and marks it as internatonal', () => {
+ const user = makeMockUserMasto({ acct: 'lain@xn--lin-6cd.com' })
+
+ expect(parseUser(user)).to.have.property('screen_name').that.equal('lain@🌏lаin.com')
+ })
})
// We currently use QvitterAPI notifications only, and especially due to MastoAPI lacking is_seen, support for MastoAPI