diff options
| author | Shpuld Shpludson <shp@cock.li> | 2021-02-27 18:12:52 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2021-02-27 18:12:52 +0000 |
| commit | aa5cb3d1d2421eaf5cc9e08264f7924a627319a3 (patch) | |
| tree | daaf784377b5cb81a2ccad6b13e39b955280a54e /test/unit/specs | |
| parent | a83fdbbd595e646d996b25e01c93c15723125455 (diff) | |
| parent | 237f272d1597cd2132f369ec1f7059fab026bc26 (diff) | |
Merge branch 'fix/punycode-buggy' into 'develop'
Fix punycode handling to be less stupid
Closes #1064
See merge request pleroma/pleroma-fe!1361
Diffstat (limited to 'test/unit/specs')
| -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') }) }) |
