summaryrefslogtreecommitdiff
path: root/internal/models/atom_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/atom_test.go')
-rw-r--r--internal/models/atom_test.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/internal/models/atom_test.go b/internal/models/atom_test.go
index 6f86949..bedb09c 100644
--- a/internal/models/atom_test.go
+++ b/internal/models/atom_test.go
@@ -37,38 +37,6 @@ func TestCardToAtom(t *testing.T) {
}
}
-func TestMealToAtom(t *testing.T) {
- date := time.Now()
- meal := Meal{
- ID: "meal-789",
- RecipeName: "Pasta",
- MealType: "dinner",
- Date: date,
- RecipeURL: "https://plantoeat.com/recipe/789",
- }
-
- atom := MealToAtom(meal)
-
- if atom.ID != "meal-789" {
- t.Errorf("Expected ID 'meal-789', got '%s'", atom.ID)
- }
- if atom.Title != "Pasta" {
- t.Errorf("Expected title 'Pasta', got '%s'", atom.Title)
- }
- if atom.Description != "dinner" {
- t.Errorf("Expected description 'dinner', got '%s'", atom.Description)
- }
- if atom.Source != SourceMeal {
- t.Errorf("Expected source Meal, got '%s'", atom.Source)
- }
- if atom.Type != TypeMeal {
- t.Errorf("Expected type Meal, got '%s'", atom.Type)
- }
- if atom.Priority != 1 {
- t.Errorf("Expected priority 1, got %d", atom.Priority)
- }
-}
-
func TestAtom_ComputeUIFields(t *testing.T) {
// Test nil due date
t.Run("nil due date", func(t *testing.T) {