Skip to content

Commit

Permalink
demo/test: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Feb 12, 2024
1 parent f280ccd commit 415d9fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/full-app-gourmet/views/recipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 415d9fb

Please sign in to comment.