add initialized channel tests

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-06-09 21:01:35 +05:30
parent 89f989003d
commit e2529231fd
9 changed files with 2019 additions and 28 deletions
File diff suppressed because it is too large Load Diff
@@ -1,19 +0,0 @@
import 'package:stream_chat/stream_chat.dart';
import 'package:test/test.dart';
void main() {
group('src/api/requests', () {
test('SortOption', () {
const option = SortOption('name');
final j = option.toJson();
expect(j, {'field': 'name', 'direction': -1});
});
test('PaginationParams', () {
const option = PaginationParams();
final j = option.toJson();
expect(j, containsPair('limit', 10));
expect(j, containsPair('offset', 0));
});
});
}
File diff suppressed because it is too large Load Diff