feat: Added test

This commit is contained in:
Deven Joshi
2021-02-19 16:10:51 +05:30
parent 801472c540
commit 6f994c6a3a
@@ -935,5 +935,19 @@ void main() {
});
});
});
group('channel', () {
test('should update channel', () async {
final client = StreamChatClient('test');
final channelClient =
client.channel('type', id: 'id', extraData: {'name': 'init'});
await channelClient.updatePartial({
'set': {
'name': 'demo',
}
});
expect(channelClient.extraData['name'], 'demo');
});
});
});
}