chore(version): update app version to 1.3.5+85 and improve test coverage reporting in CI

This commit is contained in:
mso7nueh
2025-12-08 11:19:08 +03:00
parent abe4985f0e
commit c2a506cdbf
148 changed files with 12395 additions and 1889 deletions

View File

@@ -3,27 +3,28 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
group('CancelationModel', () {
test('создает CancelationModel с правильными значениями', () {
final model = CancelationModel(
description: 'Test reason',
price: 1000,
);
test('создает экземпляр с description и price', () {
final model = CancelationModel(description: 'Test reason', price: 1000);
expect(model.description, 'Test reason');
expect(model.price, 1000);
});
test('fromJson создает CancelationModel из JSON', () {
final json = {
'description': 'Test reason',
'price': 1000,
};
test('fromJson создает модель из JSON', () {
final json = {'description': 'Test reason', 'price': 1000};
final model = CancelationModel.fromJson(json);
expect(model.description, 'Test reason');
expect(model.price, 1000);
});
test('toJson преобразует модель в JSON', () {
final model = CancelationModel(description: 'Test reason', price: 1000);
final json = model.toJson();
expect(json['description'], 'Test reason');
expect(json['price'], 1000);
});
});
}