Merge branch 'develop' into fix/message-search-pagination

This commit is contained in:
Sahil Kumar
2021-09-08 15:51:33 +05:30
committed by GitHub
49 changed files with 1433 additions and 321 deletions
@@ -138,6 +138,20 @@ void main() {
expect(filter.value, value);
});
test('empty', () {
final filter = Filter.empty();
expect(filter.value, {});
});
test('contains', () {
const key = 'testKey';
const values = 'testValue';
final filter = Filter.contains(key, values);
expect(filter.key, key);
expect(filter.value, values);
expect(filter.operator, FilterOperator.contains.rawValue);
});
group('groupedOperator', () {
final filter1 = Filter.equal('testKey', 'testValue');
final filter2 = Filter.in_('testKey', const ['testValue']);