fix: analyzer issue

This commit is contained in:
misha
2025-11-28 01:00:56 +03:00
parent 9ca09e8137
commit cbeb91a9f0
9 changed files with 75 additions and 75 deletions

View File

@@ -20,7 +20,7 @@ void main() {
late MockMyRecipesRepository mockMyRecipesRepository;
late MockAboutRecipeRepository mockAboutRecipeRepository;
final testActiveRecipe = MyRecipeModel(
const testActiveRecipe = MyRecipeModel(
id: 1,
image: 'https://someurl.com/img.jpg',
state: 'active',
@@ -28,7 +28,7 @@ void main() {
activeCookingTime: 20,
description: 'Test recipe description',
steps: [
const Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1 description'),
Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1 description'),
],
videoUrl: 'https://someurl.com/video.mp4',
title: 'Test Recipe',
@@ -38,7 +38,7 @@ void main() {
viewsCount: 10,
);
final testArchivedRecipe = MyRecipeModel(
const testArchivedRecipe = MyRecipeModel(
id: 2,
image: 'https://someurl.com/img2.jpg',
state: 'archived',

View File

@@ -20,7 +20,7 @@ void main() {
});
test('getMyRecipes returns list of recipes', () async {
final expectedPagination = MyRecipePaginationModel(
const expectedPagination = MyRecipePaginationModel(
data: [
MyRecipeModel(
id: 1,
@@ -30,7 +30,7 @@ void main() {
activeCookingTime: 20,
description: 'Test recipe description',
steps: [
const Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1 description'),
Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1 description'),
],
videoUrl: 'https://someurl.com/video.mp4',
title: 'Test Recipe',
@@ -54,7 +54,7 @@ void main() {
});
test('getMyRecipes returns empty list', () async {
final expectedPagination = MyRecipePaginationModel(
const expectedPagination = MyRecipePaginationModel(
data: [],
);
@@ -68,7 +68,7 @@ void main() {
});
test('getMyRecipes returns multiple recipes', () async {
final expectedPagination = MyRecipePaginationModel(
const expectedPagination = MyRecipePaginationModel(
data: [
MyRecipeModel(
id: 1,
@@ -93,7 +93,7 @@ void main() {
activeCookingTime: 30,
description: 'Second recipe',
steps: [
const Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1'),
Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1'),
],
videoUrl: 'https://someurl.com/video.mp4',
title: 'Second Recipe',

View File

@@ -17,7 +17,7 @@ void main() {
});
test('getMyRecipes returns pagination with recipes', () async {
final expected = MyRecipePaginationModel(
const expected = MyRecipePaginationModel(
data: [
MyRecipeModel(
id: 1,
@@ -27,8 +27,8 @@ void main() {
activeCookingTime: 20,
description: 'Test recipe description',
steps: [
const Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1 description'),
const Step(image: 'https://someurl.com/step2.jpg', description: 'Step 2 description'),
Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1 description'),
Step(image: 'https://someurl.com/step2.jpg', description: 'Step 2 description'),
],
videoUrl: 'https://someurl.com/video.mp4',
title: 'Test Recipe',
@@ -52,7 +52,7 @@ void main() {
});
test('getMyRecipes returns pagination with multiple recipes', () async {
final expected = MyRecipePaginationModel(
const expected = MyRecipePaginationModel(
data: [
MyRecipeModel(
id: 1,
@@ -62,7 +62,7 @@ void main() {
activeCookingTime: 20,
description: 'First recipe description',
steps: [
const Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1'),
Step(image: 'https://someurl.com/step1.jpg', description: 'Step 1'),
],
videoUrl: 'https://someurl.com/video1.mp4',
title: 'First Recipe',
@@ -101,7 +101,7 @@ void main() {
});
test('getMyRecipes returns empty pagination', () async {
final expected = MyRecipePaginationModel(
const expected = MyRecipePaginationModel(
data: [],
);
@@ -115,7 +115,7 @@ void main() {
});
test('getMyRecipes returns recipe with null steps and videoUrl', () async {
final expected = MyRecipePaginationModel(
const expected = MyRecipePaginationModel(
data: [
MyRecipeModel(
id: 3,