Add unit tests for Review

Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
Jonas Franz
2018-05-11 14:36:08 +02:00
parent 36d6631957
commit 9c6bb4b1e9
4 changed files with 149 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ type Review struct {
}
func (r *Review) loadCodeComments(e Engine) (err error) {
r.CodeComments, err = findComments(e, FindCommentsOptions{IssueID: r.IssueID, ReviewID: r.ID})
r.CodeComments, err = findComments(e, FindCommentsOptions{IssueID: r.IssueID, ReviewID: r.ID, Type: CommentTypeCode})
return
}