mirror of
https://github.com/TeamPiped/piped_dart.git
synced 2024-08-14 22:27:49 +00:00
Regenerate bindings for comments.
This commit is contained in:
parent
70f4ecc760
commit
abb6f6e71c
15 changed files with 1092 additions and 0 deletions
77
test/comment_test.dart
Normal file
77
test/comment_test.dart
Normal file
|
@ -0,0 +1,77 @@
|
|||
import 'package:test/test.dart';
|
||||
import 'package:piped_api/piped_api.dart';
|
||||
|
||||
// tests for Comment
|
||||
void main() {
|
||||
final instance = CommentBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(Comment, () {
|
||||
// The name of the author of the comment.
|
||||
// String author
|
||||
test('to test the property `author`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The thumbnail/avatar of the author of the comment.
|
||||
// String thumbnail
|
||||
test('to test the property `thumbnail`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The ID of the comment.
|
||||
// String commentId
|
||||
test('to test the property `commentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The text of the comment.
|
||||
// String commentText
|
||||
test('to test the property `commentText`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The relative time the comment was made.
|
||||
// String commentedTime
|
||||
test('to test the property `commentedTime`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The relative URL of the author of the comment.
|
||||
// String commentorUrl
|
||||
test('to test the property `commentorUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The parameter used as the nextpage to fetch replies for this comment.
|
||||
// String repliesPage
|
||||
test('to test the property `repliesPage`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The number of likes the comment has.
|
||||
// int likeCount
|
||||
test('to test the property `likeCount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Whether the comment was hearted by the video's uploader.
|
||||
// bool hearted
|
||||
test('to test the property `hearted`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Whether the comment was pinned by the video's uploader.
|
||||
// bool pinned
|
||||
test('to test the property `pinned`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Whether the author of the comment is verified.
|
||||
// bool verified
|
||||
test('to test the property `verified`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
28
test/comments_page_test.dart
Normal file
28
test/comments_page_test.dart
Normal file
|
@ -0,0 +1,28 @@
|
|||
import 'package:test/test.dart';
|
||||
import 'package:piped_api/piped_api.dart';
|
||||
|
||||
// tests for CommentsPage
|
||||
void main() {
|
||||
final instance = CommentsPageBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(CommentsPage, () {
|
||||
// BuiltList<Comment> comments
|
||||
test('to test the property `comments`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// The parameter used to get the next page of comments.
|
||||
// String nextpage
|
||||
test('to test the property `nextpage`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Whether or not comments are disabled on the video.
|
||||
// bool disabled
|
||||
test('to test the property `disabled`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue