19 lines
461 B
Dart
19 lines
461 B
Dart
import 'package:test/test.dart';
|
|
import 'package:stream_chat/stream_chat.dart';
|
|
|
|
void main() {
|
|
group('src/api/requests', () {
|
|
test('SortOption', () {
|
|
final option = SortOption('name');
|
|
final j = option.toJson();
|
|
expect(j, {'field': 'name', 'direction': -1});
|
|
});
|
|
|
|
test('PaginationParams', () {
|
|
final option = PaginationParams();
|
|
final j = option.toJson();
|
|
expect(j, {'limit': 10, 'offset': 0});
|
|
});
|
|
});
|
|
}
|