mirror of
https://github.com/boolean-maybe/tiki
synced 2026-04-21 13:37:20 +00:00
appease linter
This commit is contained in:
parent
692e559d5f
commit
62468209bc
2 changed files with 6 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ func TestTaskDetailView_ChatModifiesTask(t *testing.T) {
|
|||
updated := ta.TaskStore.GetTask(taskID)
|
||||
if updated == nil {
|
||||
t.Fatal("task not found after chat")
|
||||
return
|
||||
}
|
||||
if updated.Title != "AI Modified Title" {
|
||||
t.Errorf("title = %q, want %q", updated.Title, "AI Modified Title")
|
||||
|
|
@ -114,6 +115,7 @@ func TestTaskDetailView_ChatNotAvailableWithoutConfig(t *testing.T) {
|
|||
task := ta.TaskStore.GetTask(taskID)
|
||||
if task == nil {
|
||||
t.Fatal("task not found")
|
||||
return
|
||||
}
|
||||
if task.Title != "Unchanged Title" {
|
||||
t.Errorf("title = %q, want %q", task.Title, "Unchanged Title")
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ func TestDepsEditor_MoveTask_AllToDepends_PersistsOnDisk(t *testing.T) {
|
|||
updated := ta.TaskStore.GetTask(contextID)
|
||||
if updated == nil {
|
||||
t.Fatalf("context task not found in store")
|
||||
return
|
||||
}
|
||||
if !slices.Contains(updated.DependsOn, freeID) {
|
||||
t.Errorf("DependsOn = %v, want it to contain %s", updated.DependsOn, freeID)
|
||||
|
|
@ -170,6 +171,7 @@ func TestDepsEditor_MoveTask_AllToDepends_PersistsOnDisk(t *testing.T) {
|
|||
reloaded := ta.TaskStore.GetTask(contextID)
|
||||
if reloaded == nil {
|
||||
t.Fatalf("context task not found after reload")
|
||||
return
|
||||
}
|
||||
if !slices.Contains(reloaded.DependsOn, freeID) {
|
||||
t.Errorf("after reload: DependsOn = %v, want it to contain %s", reloaded.DependsOn, freeID)
|
||||
|
|
@ -223,6 +225,7 @@ func TestDepsEditor_MoveTask_DependsToAll_RemovesDep(t *testing.T) {
|
|||
updated := ta.TaskStore.GetTask(contextID)
|
||||
if updated == nil {
|
||||
t.Fatalf("context task not found in store")
|
||||
return
|
||||
}
|
||||
if slices.Contains(updated.DependsOn, depID) {
|
||||
t.Errorf("DependsOn = %v, should not contain %s after removal", updated.DependsOn, depID)
|
||||
|
|
@ -235,6 +238,7 @@ func TestDepsEditor_MoveTask_DependsToAll_RemovesDep(t *testing.T) {
|
|||
reloaded := ta.TaskStore.GetTask(contextID)
|
||||
if reloaded == nil {
|
||||
t.Fatalf("context task not found after reload")
|
||||
return
|
||||
}
|
||||
if slices.Contains(reloaded.DependsOn, depID) {
|
||||
t.Errorf("after reload: DependsOn = %v, should not contain %s", reloaded.DependsOn, depID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue