Add tests

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-18 23:12:35 -04:00
parent 29fdb0fa19
commit 011cd2a78b
7 changed files with 399 additions and 68 deletions
+2 -2
View File
@@ -471,7 +471,7 @@ func (s *PostService) LoadMoreComments(ctx context.Context, pc *PostAndComments)
}
postID := pc.Post.FullID
commentIDs := pc.MoreComments.Children
commentIDs := pc.More.Children
form := url.Values{}
form.Set("api_type", "json")
@@ -515,7 +515,7 @@ func (s *PostService) LoadMoreComments(ctx context.Context, pc *PostAndComments)
}
if noMore {
pc.MoreComments = nil
pc.More = nil
}
return resp, nil