aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2021-01-05 13:58:52 +0200
committerShpuld Shpuldson <shp@cock.li>2021-01-05 13:58:52 +0200
commitab2c2c66bfe96571d14cff4b8c69fe0c90d5a3c7 (patch)
treed35c6958a49431358e131601ca31f753c804fd99 /test
parent5e96260a4f855e2d93915c1b428a7209a882c8cb (diff)
parent3e7d1fbf23b5ca1b382381b49affc481404137da (diff)
Merge branch 'develop' into feat/report-notification
Diffstat (limited to 'test')
-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