diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2022-08-29 18:46:41 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-08-29 18:46:41 -0400 |
| commit | 0a79a747730bb4a10eb2544412dab68a10602240 (patch) | |
| tree | b65d8ced59250c758ffa7aeb313c4ae783ee0a9f /test/unit/specs/services | |
| parent | e812d5ea3c97fdac0ed6b23817ae144cf96bb300 (diff) | |
Use dedicated indicator for non-ascii domain names
Diffstat (limited to 'test/unit/specs/services')
| -rw-r--r-- | test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js | 3 |
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) }) }) |
