Remove orphaned TestFormatDependencyType test
The formatDependencyType function was removed in commit 57b6ea6 when
the dependency display UI was simplified. The test was left behind
and is now failing CI.
This completes the cleanup that was partially done in PR #309.
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/steveyegge/beads/internal/types"
|
||||
)
|
||||
|
||||
func TestFormatDependencyType(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
depType types.DependencyType
|
||||
expected string
|
||||
}{
|
||||
{"blocks", types.DepBlocks, "blocks"},
|
||||
{"related", types.DepRelated, "related"},
|
||||
{"parent-child", types.DepParentChild, "parent-child"},
|
||||
{"discovered-from", types.DepDiscoveredFrom, "discovered-from"},
|
||||
{"unknown", types.DependencyType("unknown"), "unknown"},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
result := formatDependencyType(tt.depType)
|
||||
if result != tt.expected {
|
||||
t.Errorf("formatDependencyType(%v) = %v, want %v", tt.depType, result, tt.expected)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user