aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/todo_test.go
diff options
context:
space:
mode:
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")
}
}