Implement user_profile.spec.js

This commit is contained in:
Maxim Filippov 2018-12-15 06:16:44 +03:00
parent 1341a7bb9c
commit 828b1c78f9
8 changed files with 153 additions and 15 deletions

View file

@ -41,9 +41,6 @@ export default {
const days = Math.ceil((new Date() - new Date(this.user.created_at)) / (60 * 60 * 24 * 1000))
return Math.round(this.user.statuses_count / days)
},
userProfileLink (user) {
return generateProfileLink(user.id, user.screen_name)
},
userHighlightType: {
get () {
const data = this.$store.state.config.highlight[this.user.screen_name]
@ -110,6 +107,9 @@ export default {
if (target.tagName === 'A') {
window.open(target.href, '_blank')
}
},
userProfileLink (user) {
return generateProfileLink(user.id, user.screen_name)
}
}
}