piped_dart/test/search_api_test.dart
2023-06-09 19:59:38 +01:00

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
});
});
}