feat(video_calls): call ended push, recall button for message

This commit is contained in:
misha
2026-06-30 16:11:18 +03:00
parent c0c7e2e658
commit f493e07f9f
30 changed files with 671 additions and 83 deletions

View File

@@ -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);
});
});
}