diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-13 14:05:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-13 14:05:38 +0300 |
| commit | 604f5aa7603498c4f7cc9a649a86d525b824e6c9 (patch) | |
| tree | 814adfdd098e1594b74cbda3396b06723a469d3b /internal/askcli/command_info_add_test.go | |
| parent | 00981e0d9cd0bc00c3e21ec0124ffbcc52b4762a (diff) | |
Release v0.33.0: ask dependency UX and start gatingv0.33.0
Show only task alias IDs on ask info Depends lines. Block ask start
until every dependency is completed. Bump version to 0.33.0.
Made-with: Cursor
Diffstat (limited to 'internal/askcli/command_info_add_test.go')
| -rw-r--r-- | internal/askcli/command_info_add_test.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/internal/askcli/command_info_add_test.go b/internal/askcli/command_info_add_test.go index 0e5b366..b6f0bd0 100644 --- a/internal/askcli/command_info_add_test.go +++ b/internal/askcli/command_info_add_test.go @@ -57,9 +57,12 @@ func TestHandleInfo_Success(t *testing.T) { if !strings.Contains(output, "Started: no") { t.Fatalf("output missing explicit started state: %s", output) } - if !strings.Contains(output, "Depends: 1 (dep-1)") { + if !strings.Contains(output, "Depends: 1") { t.Fatalf("output missing formatted dependency alias: %s", output) } + if strings.Contains(output, "dep-1") { + t.Fatalf("output should not list dependency UUID when alias exists: %s", output) + } } func TestHandleInfo_Success_DebugShowsUUID(t *testing.T) { @@ -135,11 +138,12 @@ func TestHandleInfo_AssignsDependencyAliasesFromInfo(t *testing.T) { } output := stdout.String() - if !strings.Contains(output, "Depends:") || - !strings.Contains(output, "(dep-a)") || - !strings.Contains(output, "(dep-b)") { + if !strings.Contains(output, "Depends: 1, 2") { t.Fatalf("output missing assigned dependency aliases: %s", output) } + if strings.Contains(output, "dep-a") || strings.Contains(output, "dep-b") { + t.Fatalf("output should not list dependency UUIDs when aliases exist: %s", output) + } } func TestHandleInfo_AliasSelector(t *testing.T) { |
