fix(llc): don't return cid in case name is null, minor improvements

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-08-11 15:00:05 +05:30
committed by xsahil03x
parent b3a1d42f92
commit 702f7ee937
2 changed files with 4 additions and 32 deletions
@@ -39,7 +39,6 @@ void main() {
late final client = MockStreamChatClient();
const channelId = 'test-channel-id';
const channelType = 'test-channel-type';
const channelCid = '$channelType:$channelId';
late Channel channel;
setUpAll(() {
@@ -93,11 +92,6 @@ void main() {
test('should be able to get and set `name`', () {
expect(channel.extraData.isEmpty, isTrue);
expect(
channel.name,
channelCid,
reason: 'if name is not set then use channel id',
);
const name = 'Channel name';
channel.name = name;