@@ -43,7 +43,7 @@ func TestExportTasks(t *testing.T) {
4343}
4444
4545func TestAddTaskToTaskwarrior (t * testing.T ) {
46- err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "" , "H" , "2025-03-03 " , "2025-03-01" , "2025-03-01" , "2025-03-01" , "2025-03-03" , "daily" , nil , []models.Annotation {{Description : "note" }}, []string {})
46+ err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "" , "H" , "2025-03-03T10:30:00 " , "2025-03-01" , "2025-03-01" , "2025-03-01" , "2025-03-03" , "daily" , [] string {} , []models.Annotation {{Description : "note" }}, []string {})
4747 if err != nil {
4848 t .Errorf ("AddTaskToTaskwarrior failed: %v" , err )
4949 } else {
@@ -52,7 +52,7 @@ func TestAddTaskToTaskwarrior(t *testing.T) {
5252}
5353
5454func TestAddTaskToTaskwarriorWithWaitDate (t * testing.T ) {
55- err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-03 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-04" , "" , nil , []models.Annotation {})
55+ err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-03T14:00:00 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-04" , "" , [] string {} , []models.Annotation {}, [] string {})
5656 if err != nil {
5757 t .Errorf ("AddTaskToTaskwarrior with wait date failed: %v" , err )
5858 } else {
@@ -61,7 +61,7 @@ func TestAddTaskToTaskwarriorWithWaitDate(t *testing.T) {
6161}
6262
6363func TestAddTaskToTaskwarriorWithEntryDate (t * testing.T ) {
64- err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-05 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-10" , "" , nil , nil )
64+ err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-05T16:30:00 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-10" , "" , [] string {}, []models. Annotation {}, [] string {} )
6565 if err != nil {
6666 t .Errorf ("AddTaskToTaskwarrior failed: %v" , err )
6767 } else {
@@ -79,7 +79,7 @@ func TestCompleteTaskInTaskwarrior(t *testing.T) {
7979}
8080
8181func TestAddTaskWithTags (t * testing.T ) {
82- err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "" , "H" , "2025-03-03 " , "2025-03-01" , "2025-03-01" , "2025-03-01" , "2025-03-03" , "daily" , []string {"work" , "important" }, []models.Annotation {{Description : "note" }}, []string {})
82+ err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "" , "H" , "2025-03-03T15:45:00 " , "2025-03-01" , "2025-03-01" , "2025-03-01" , "2025-03-03" , "daily" , []string {"work" , "important" }, []models.Annotation {{Description : "note" }}, []string {})
8383 if err != nil {
8484 t .Errorf ("AddTaskToTaskwarrior with tags failed: %v" , err )
8585 } else {
@@ -88,7 +88,7 @@ func TestAddTaskWithTags(t *testing.T) {
8888}
8989
9090func TestAddTaskToTaskwarriorWithEntryDateAndTags (t * testing.T ) {
91- err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-05 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-10" , "" , []string {"work" , "important" }, nil )
91+ err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-05T16:00:00 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-10" , "" , []string {"work" , "important" }, []models. Annotation {}, [] string {} )
9292 if err != nil {
9393 t .Errorf ("AddTaskToTaskwarrior with entry date and tags failed: %v" , err )
9494 } else {
@@ -97,7 +97,7 @@ func TestAddTaskToTaskwarriorWithEntryDateAndTags(t *testing.T) {
9797}
9898
9999func TestAddTaskToTaskwarriorWithWaitDateWithTags (t * testing.T ) {
100- err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-03 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-04" , "" , []string {"work" , "important" }, []models.Annotation {})
100+ err := AddTaskToTaskwarrior ("email" , "encryption_secret" , "clientId" , "description" , "project" , "H" , "2025-03-03T14:30:00 " , "2025-03-04" , "2025-03-04" , "2025-03-04" , "2025-03-04" , "" , []string {"work" , "important" }, []models.Annotation {}, [] string {})
101101 if err != nil {
102102 t .Errorf ("AddTaskToTaskwarrior with wait date failed: %v" , err )
103103 } else {
0 commit comments