Add tests, edit error messages

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-03 00:00:29 -04:00
parent c3b2ab00c2
commit 8259f16f19
11 changed files with 726 additions and 22 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (s *CommentService) Edit(ctx context.Context, id string, text string) (*Com
// LoadMoreReplies retrieves more replies that were left out when initially fetching the comment.
func (s *CommentService) LoadMoreReplies(ctx context.Context, comment *Comment) (*Response, error) {
if comment == nil {
return nil, errors.New("comment: must not be nil")
return nil, errors.New("comment: cannot be nil")
}
if !comment.hasMore() {