forked from eatvio/eatvio_app
feat(tests): updated tests coverage to 66.5%
This commit is contained in:
@@ -18,6 +18,14 @@ void main() {
|
||||
|
||||
expect(model.day, '2024-01-01');
|
||||
});
|
||||
|
||||
test('toJson serializes CreateDayModel correctly', () {
|
||||
final model = CreateDayModel(day: '2024-01-01');
|
||||
|
||||
final json = model.toJson();
|
||||
|
||||
expect(json['day'], '2024-01-01');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user