fix event tests

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-20 13:54:29 +05:30
parent 253715a246
commit a273730b09
@@ -35,7 +35,8 @@ void main() {
"online": false,
"image": "https://getstream.io/random_svg/?name=Dry+meadow",
"name": "Dry meadow"
}
},
"is_local": false
}
''';
@@ -47,6 +48,7 @@ void main() {
expect(event.createdAt, isA<DateTime>());
expect(event.me, isA<OwnUser>());
expect(event.user, isA<User>());
expect(event.isLocal, false);
});
test('should serialize to json correctly', () {
@@ -81,6 +83,7 @@ void main() {
'channel_id': null,
'channel_type': null,
'parent_id': null,
'is_local': true,
},
);
});