Testing List notes
This commit is contained in:
@@ -24,3 +24,7 @@ func (m *mockNoteStore) GetNoteByID(id int) (models.Note, error) {
|
||||
}
|
||||
return models.Note{}, fmt.Errorf("note with ID %d not found", id)
|
||||
}
|
||||
|
||||
func (m *mockNoteStore) GetAllNotes() ([]models.Note, error) {
|
||||
return m.Notes, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user