diff options
Diffstat (limited to 'todolist/grouper_test.go')
| -rw-r--r-- | todolist/grouper_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/todolist/grouper_test.go b/todolist/grouper_test.go index 4b79703..12a1018 100644 --- a/todolist/grouper_test.go +++ b/todolist/grouper_test.go @@ -11,7 +11,8 @@ func TestGroupByContext(t *testing.T) { store := &FileStore{FileLocation: "todos.json"} list := &TodoList{} - list.Load(store.Load()) + todos, _ := store.Load() + list.Load(todos) grouper := &Grouper{} grouped := grouper.GroupByContext(list.Todos()) @@ -25,7 +26,8 @@ func TestGroupByProject(t *testing.T) { store := &FileStore{FileLocation: "todos.json"} list := &TodoList{} - list.Load(store.Load()) + todos, _ := store.Load() + list.Load(todos) grouper := &Grouper{} grouped := grouper.GroupByProject(list.Todos()) |
