import 'package:eatvio_app/features/feed/models/diets_pagination_model.dart'; import 'package:eatvio_app/features/feed/models/recipes_model.dart'; import 'package:eatvio_app/features/feed/models/recipes_pagination_model.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { group('RecipesPagination', () { test('создает RecipesPagination с правильными значениями', () { const recipe = Recipe( id: 1, image: 'https://example.com/image.jpg', state: 'active', cookingTime: 30, activeCookingTime: 15, ingredients: [], description: 'Test description', steps: [], videoUrl: null, createdAt: null, updatedAt: null, title: 'Test Recipe', type: 'main', slug: 'test-recipe', commentsCount: 5, wasLikedByMe: false, isFavorite: false, calories: 300.0, servings: 4, likesCount: 10, viewsCount: 100, tags: [], author: Author( authorSlug: 'author', authorName: 'Author Name', authorProfileIcon: 'https://example.com/icon.jpg', authorIsMe: false, isEntitySubscribedByMe: null, authorPlaceInRating: null, ), ); const pagination = RecipesPagination(recipesList: [recipe]); expect(pagination.recipesList.length, 1); expect(pagination.recipesList.first.id, 1); expect(pagination.recipesList.first.title, 'Test Recipe'); }); }); }