aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-29 23:03:23 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-29 23:03:23 +0000
commit3b6c31f3b3d2326ffbe258c826f6dbd3f5374cf2 (patch)
treeb65d8ced59250c758ffa7aeb313c4ae783ee0a9f /test
parente812d5ea3c97fdac0ed6b23817ae144cf96bb300 (diff)
parent0a79a747730bb4a10eb2544412dab68a10602240 (diff)
Merge branch 'from/develop/tusooa/1189-mention-uri' into 'develop'
Use dedicated indicator for non-ascii domain names Closes #1189 See merge request pleroma/pleroma-fe!1632
Diffstat (limited to 'test')
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js3
1 files changed, 2 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 98bb05a8..3923596b 100644
--- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
+++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
@@ -269,7 +269,8 @@ describe('API Entities normalizer', () => {
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_ui').that.equal('lain@🌏lаin.com')
+ expect(parseUser(user)).to.have.property('screen_name_ui').that.equal('lain@lаin.com')
+ expect(parseUser(user)).to.have.property('screen_name_ui_contains_non_ascii').that.equal(true)
})
})