aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/todo_test.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-04-12 08:54:19 -0400
committerGitHub <noreply@github.com>2017-04-12 08:54:19 -0400
commite118736cf7df17dc10822fab36af7407c7e110a6 (patch)
tree651dfc58c6c144bd1349dfe6a74c9aed477cf13f /todolist/todo_test.go
parent146f19e1dc8143096bca6bfd0adf2e1f8d9be7b7 (diff)
parent8badae37312c70bc9ae68c7c6c0792033fb0dbd1 (diff)
Merge pull request #53 from ingorichter/ingo/completion-date
Add `CompletedDate` to todo item
Diffstat (limited to 'todolist/todo_test.go')
-rw-r--r--todolist/todo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolist/todo_test.go b/todolist/todo_test.go
index aab2a74..c0069e6 100644
--- a/todolist/todo_test.go
+++ b/todolist/todo_test.go
@@ -5,7 +5,7 @@ import "testing"
func TestNewTodo(t *testing.T) {
todo := NewTodo()
- if todo.Completed || todo.Archived {
+ if todo.Completed || todo.Archived || todo.CompletedDate != "" {
t.Error("Completed should be false for new todos")
}
}