@@ -158,7 +158,7 @@ class Filter extends Equatable {
|
|||||||
Filter._(operator: FilterOperator.exists, key: key, value: exists);
|
Filter._(operator: FilterOperator.exists, key: key, value: exists);
|
||||||
|
|
||||||
/// Creates a custom [Filter] if there isn't one already available.
|
/// Creates a custom [Filter] if there isn't one already available.
|
||||||
factory Filter.custom({
|
const factory Filter.custom({
|
||||||
required String operator,
|
required String operator,
|
||||||
required Object value,
|
required Object value,
|
||||||
String? key,
|
String? key,
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ void main() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
await client.queryChannelsOnline(filter: null, waitForConnect: false);
|
await client.queryChannelsOnline(waitForConnect: false);
|
||||||
|
|
||||||
verify(() =>
|
verify(() =>
|
||||||
mockDio.get<String>('/channels', queryParameters: queryParams))
|
mockDio.get<String>('/channels', queryParameters: queryParams))
|
||||||
@@ -141,7 +141,7 @@ void main() {
|
|||||||
when(() => mockDio.interceptors).thenReturn(Interceptors());
|
when(() => mockDio.interceptors).thenReturn(Interceptors());
|
||||||
|
|
||||||
final client = StreamChatClient('api-key', httpClient: mockDio);
|
final client = StreamChatClient('api-key', httpClient: mockDio);
|
||||||
final queryFilter = Filter.in_('id', ['test']);
|
final queryFilter = Filter.in_('id', const ['test']);
|
||||||
final sortOptions = <SortOption<ChannelModel>>[];
|
final sortOptions = <SortOption<ChannelModel>>[];
|
||||||
final options = {'state': false, 'watch': false, 'presence': true};
|
final options = {'state': false, 'watch': false, 'presence': true};
|
||||||
const paginationParams = PaginationParams(offset: 2);
|
const paginationParams = PaginationParams(offset: 2);
|
||||||
@@ -189,7 +189,7 @@ void main() {
|
|||||||
when(() => mockDio.interceptors).thenReturn(Interceptors());
|
when(() => mockDio.interceptors).thenReturn(Interceptors());
|
||||||
|
|
||||||
final client = StreamChatClient('api-key', httpClient: mockDio);
|
final client = StreamChatClient('api-key', httpClient: mockDio);
|
||||||
final filter = Filter.in_('cid', ['messaging:testId']);
|
final filter = Filter.in_('cid', const ['messaging:testId']);
|
||||||
const query = 'hello';
|
const query = 'hello';
|
||||||
final queryParams = {
|
final queryParams = {
|
||||||
'payload': json.encode({
|
'payload': json.encode({
|
||||||
@@ -222,7 +222,7 @@ void main() {
|
|||||||
when(() => mockDio.interceptors).thenReturn(Interceptors());
|
when(() => mockDio.interceptors).thenReturn(Interceptors());
|
||||||
|
|
||||||
final client = StreamChatClient('api-key', httpClient: mockDio);
|
final client = StreamChatClient('api-key', httpClient: mockDio);
|
||||||
final filters = Filter.in_('id', ['test']);
|
final filters = Filter.in_('id', const ['test']);
|
||||||
const sortOptions = [SortOption('name')];
|
const sortOptions = [SortOption('name')];
|
||||||
const query = 'query';
|
const query = 'query';
|
||||||
final queryParams = {
|
final queryParams = {
|
||||||
|
|||||||
Reference in New Issue
Block a user