forked from eatvio/eatvio_app
feat(video_calls): call ended push, recall button for message
This commit is contained in:
@@ -112,4 +112,24 @@ void main() {
|
||||
expect(restored, model);
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoCallAcceptResponse', () {
|
||||
test('fromJson десериализует sent и devices_notified', () {
|
||||
final json = FixtureReader.readAsMap('video_calls/video_call_accept_response.json');
|
||||
|
||||
final model = VideoCallAcceptResponse.fromJson(json);
|
||||
|
||||
expect(model.sent, isTrue);
|
||||
expect(model.devicesNotified, 2);
|
||||
});
|
||||
|
||||
test('round-trip JSON сохраняет значения', () {
|
||||
final json = FixtureReader.readAsMap('video_calls/video_call_accept_response.json');
|
||||
|
||||
final model = VideoCallAcceptResponse.fromJson(json);
|
||||
final restored = VideoCallAcceptResponse.fromJson(model.toJson());
|
||||
|
||||
expect(restored, model);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user