fix: tests
This commit is contained in:
@@ -29,6 +29,7 @@ void main() {
|
||||
DateTime.parse('2019-04-03T18:43:33.213374Z'));
|
||||
expect(channelState.channel?.createdBy, isA<User>());
|
||||
expect(channelState.channel?.frozen, true);
|
||||
expect(channelState.channel?.cooldown, 0);
|
||||
expect(channelState.channel?.extraData['example'], 1);
|
||||
expect(channelState.channel?.extraData['name'], '#dev');
|
||||
expect(
|
||||
|
||||
@@ -25,7 +25,13 @@ void main() {
|
||||
|
||||
expect(
|
||||
channel.toJson(),
|
||||
{'id': 'id', 'type': 'type', 'frozen': false, 'name': 'cool'},
|
||||
{
|
||||
'id': 'id',
|
||||
'type': 'type',
|
||||
'frozen': false,
|
||||
'cooldown': 0,
|
||||
'name': 'cool',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -39,7 +45,13 @@ void main() {
|
||||
|
||||
expect(
|
||||
channel.toJson(),
|
||||
{'id': 'id', 'type': 'type', 'name': 'cool', 'frozen': false},
|
||||
{
|
||||
'id': 'id',
|
||||
'type': 'type',
|
||||
'frozen': false,
|
||||
'cooldown': 0,
|
||||
'name': 'cool',
|
||||
},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user