aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-02-28 15:37:39 +0000
committerShpuld Shpludson <shp@cock.li>2021-02-28 15:37:39 +0000
commit91f93d4a55cbf927a6adee35dc184b09d1f9b75d (patch)
tree882fb179fa7ed36e6c212a4874559b27a73f3d1e /test/unit/specs
parent670abd633f97e75cf35981ee0f617d0be1b43816 (diff)
parentb4782ad159026e3fb50c476e5cf9d89176e441f4 (diff)
Merge branch 'develop' into 'feat/timeline-quick-settings'
# Conflicts: # CHANGELOG.md
Diffstat (limited to 'test/unit/specs')
-rw-r--r--test/unit/specs/components/user_profile.spec.js6
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js2
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')
})
})