diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2021-03-01 09:27:19 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2021-03-01 09:27:19 +0200 |
| commit | 35cde98d2c7b6edb458963effb3e40d36d1b3ebf (patch) | |
| tree | 0e824d880b53cd8f1c6213aad74d9817486904a6 /test | |
| parent | 44e687653cd79ca99950040c547a23e3a8a99c23 (diff) | |
| parent | 49aa10e1c0e279d692fb92695f92e4b8548f6b12 (diff) | |
Merge branch 'fix/punycode-buggy' into rc/2.3.0
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/specs/components/user_profile.spec.js | 6 | ||||
| -rw-r--r-- | test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/unit/specs/components/user_profile.spec.js b/test/unit/specs/components/user_profile.spec.js index 80092b41..142db73c 100644 --- a/test/unit/specs/components/user_profile.spec.js +++ b/test/unit/specs/components/user_profile.spec.js @@ -31,13 +31,15 @@ const testGetters = { const localUser = { id: 100, is_local: true, - screen_name: 'testUser' + screen_name: 'testUser', + screen_name_ui: 'testUser' } const extUser = { id: 100, is_local: false, - screen_name: 'testUser@test.instance' + screen_name: 'testUser@test.instance', + screen_name_ui: 'testUser@test.instance' } const externalProfileStore = new Vuex.Store({ 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 a3f49b2c..759539e0 100644 --- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js +++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js @@ -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') }) }) |
