mirror of
https://github.com/TeamPiped/piped_dart.git
synced 2024-08-14 22:27:49 +00:00
30 lines
798 B
Dart
30 lines
798 B
Dart
import 'package:test/test.dart';
|
|
import 'package:piped_api/piped_api.dart';
|
|
|
|
/// tests for SearchApi
|
|
void main() {
|
|
final instance = PipedApi().getSearchApi();
|
|
|
|
group(SearchApi, () {
|
|
// Searches for videos, channels, and playlists.
|
|
//
|
|
// Searches for videos, channels, and playlists.
|
|
//
|
|
//Future<SearchPage> search(String q, SearchFilter filter) async
|
|
test('test search', () async {
|
|
print((await instance.search(q: "cat videos", filter: SearchFilter.all))
|
|
.data
|
|
?.items
|
|
?.first);
|
|
});
|
|
|
|
// Gets more search results
|
|
//
|
|
// Gets more search results.
|
|
//
|
|
//Future<SearchPage> searchNextPage(String nextpage, String q, SearchFilter filter) async
|
|
test('test searchNextPage', () async {
|
|
// TODO
|
|
});
|
|
});
|
|
}
|