separate screen_name and screen_name_ui with decoded punycode

This commit is contained in:
Shpuld Shpuldson 2021-02-26 16:23:11 +02:00
parent 59db4582b0
commit 09fe160e8b
14 changed files with 26 additions and 24 deletions

View file

@ -315,7 +315,7 @@ 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').that.equal('lain@🌏lаin.com')
expect(parseUser(user)).to.have.property('screen_name_ui').that.equal('lain@🌏lаin.com')
})
})