fix timeline item title service test

stable
Juanfran 2015-05-12 14:36:06 +02:00
parent 0efc0f829e
commit 8f3e512f6e
1 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ describe "tgProfileTimelineItemTitle", ->
timeline = { timeline = {
data: { data: {
user: { user: {
username: 'xx' username: 'xx',
name: 'oo'
} }
} }
} }
@ -52,7 +53,7 @@ describe "tgProfileTimelineItemTitle", ->
.returns('user-param') .returns('user-param')
usernamelink = sinon.match ((value) -> usernamelink = sinon.match ((value) ->
return value.username == '<a tg-nav="user-profile:username=vm.activity.user.username" title="user-param">xx</a>' return value.username == '<a tg-nav="user-profile:username=vm.activity.user.username" title="user-param">oo</a>'
), "usernamelink" ), "usernamelink"
mockTranslate.instant mockTranslate.instant