diff options
| author | Grant Ammons <grant@pipelinedealsco.com> | 2016-09-19 05:27:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-19 05:27:44 -0400 |
| commit | c3c8817de6228557ba865465e3d639a104578587 (patch) | |
| tree | b5e004011606f1cc44eba196bff8f1bd33e795b7 /todolist/grouper_test.go | |
| parent | aa0580af8066b030c720a20b5e79e98a53d1ec11 (diff) | |
| parent | 144ac3243b4920d267f224732d9deff0f9f2cc52 (diff) | |
Merge pull request #9 from Bunchhieng/master
Only allow to open web app if .todos.json exists in current directory
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()) |
