From 415d9fb030754cb61bcec0a3f99634df8b2e9e30 Mon Sep 17 00:00:00 2001 From: EwenQuim Date: Tue, 13 Feb 2024 00:36:24 +0100 Subject: [PATCH] demo/test: fixed tests --- examples/full-app-gourmet/views/recipe_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/full-app-gourmet/views/recipe_test.go b/examples/full-app-gourmet/views/recipe_test.go index 433832b2..4e130ea1 100644 --- a/examples/full-app-gourmet/views/recipe_test.go +++ b/examples/full-app-gourmet/views/recipe_test.go @@ -34,6 +34,14 @@ func (r RecipeRepositoryMock) GetRecipes(ctx context.Context) ([]store.Recipe, e return []store.Recipe{}, nil } +func (r RecipeRepositoryMock) SearchRecipes(ctx context.Context, params store.SearchRecipesParams) ([]store.Recipe, error) { + return []store.Recipe{}, nil +} + +func (r RecipeRepositoryMock) GetRandomRecipes(ctx context.Context) ([]store.Recipe, error) { + return []store.Recipe{}, nil +} + type IngredientRepositoryMock struct { views.IngredientRepository }