test(repo): fix tests

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-05-16 18:21:33 +05:30
committed by xsahil03x
parent 069f380f41
commit 2f9a35f3fa
4 changed files with 27 additions and 15 deletions
@@ -48,9 +48,9 @@ void main() {
final channelState = ChannelState(
channel: ChannelModel.fromJson(j['channel']),
members: [],
messages: (j['messages'] as List<Map<String, dynamic>>)
.map(Message.fromJson)
.toList(),
messages:
// ignore: unnecessary_lambdas
(j['messages'] as List).map((m) => Message.fromJson(m)).toList(),
read: [],
watcherCount: 5,
pinnedMessages: [],