Skip to content

Commit

Permalink
fix flutter analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
pektinasen committed Jul 19, 2024
1 parent a3fecdb commit 3f208be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/fixture/meal_entity_fixtures.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:opennutritracker/features/add_meal/domain/entity/meal_entity.dar
import 'package:opennutritracker/features/add_meal/domain/entity/meal_nutriments_entity.dart';

class MealEntityFixtures {
static final meal_one = MealEntity(
static final mealOne = MealEntity(
code: "1",
name: null,
url: null,
Expand All @@ -12,7 +12,7 @@ class MealEntityFixtures {
servingUnit: 'g',
nutriments: MealNutrimentsEntity.empty(),
source: MealSourceEntity.custom);
static final meal_two = MealEntity(
static final mealTwo = MealEntity(
code: "2",
name: null,
url: null,
Expand All @@ -22,7 +22,7 @@ class MealEntityFixtures {
servingUnit: 'g',
nutriments: MealNutrimentsEntity.empty(),
source: MealSourceEntity.custom);
static final meal_three = MealEntity(
static final mealThree = MealEntity(
code: "3",
name: null,
url: null,
Expand Down
6 changes: 3 additions & 3 deletions test/unit_test/intake_repository_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ void main() {
unit: "g",
amount: 1,
type: IntakeTypeEntity.breakfast,
meal: MealEntityFixtures.meal_one,
meal: MealEntityFixtures.mealOne,
dateTime: DateTime.utc(2024, 1, 1, 0, 0, 0)));
await repo.addIntake(IntakeEntity(
id: "2",
unit: "g",
amount: 1,
type: IntakeTypeEntity.breakfast,
meal: MealEntityFixtures.meal_two,
meal: MealEntityFixtures.mealTwo,
dateTime: DateTime.utc(2024, 1, 2, 0, 0, 0)));
await repo.addIntake(IntakeEntity(
id: "3",
unit: "g",
amount: 1,
type: IntakeTypeEntity.breakfast,
meal: MealEntityFixtures.meal_three,
meal: MealEntityFixtures.mealThree,
dateTime: DateTime.utc(2024, 1, 3, 0, 0, 0)));

final recents = (await repo.getRecentIntake()).map((e) => e.id).toList();
Expand Down

0 comments on commit 3f208be

Please sign in to comment.