feat: introduce DiaryCubit for managing user diary and diet plans, and add new unit tests for various features.

This commit is contained in:
mso7nueh
2026-01-27 14:33:21 +03:00
parent a93da1b505
commit 79df8c5f9a
4 changed files with 7 additions and 5 deletions

View File

@@ -244,7 +244,8 @@ void main() {
await tester.pump();
// Assert
expect(find.text('Закончить день'), findsOneWidget);
// Теперь на экране 2 текста "Закончить день": один на кнопке, другой в заголовке bottom sheet
expect(find.text('Закончить день'), findsNWidgets(2));
});
testWidgets('should display MealWidget with mood rating when showMood is true', (WidgetTester tester) async {