1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api: rename VoteDirection to Direction

This commit is contained in:
Adhityaa
2018-06-07 13:09:53 +05:30
parent fcf21fd9db
commit 0f2a6a8ccc
3 changed files with 7 additions and 7 deletions

View File

@ -25,8 +25,8 @@ func TestCommentListBasics(t *testing.T) {
return
}
if c[0].VoteDirection != 0 {
t.Errorf("expected c.VoteDirection = 0 got c.VoteDirection = %d", c[0].VoteDirection)
if c[0].Direction != 0 {
t.Errorf("expected c.Direction = 0 got c.Direction = %d", c[0].Direction)
return
}
@ -47,8 +47,8 @@ func TestCommentListBasics(t *testing.T) {
return
}
if c[0].VoteDirection != 1 {
t.Errorf("expected c.VoteDirection = 1 got c.VoteDirection = %d", c[0].VoteDirection)
if c[0].Direction != 1 {
t.Errorf("expected c.Direction = 1 got c.Direction = %d", c[0].Direction)
return
}
}