fix timeline item title service test
parent
0efc0f829e
commit
8f3e512f6e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue