diff options
Diffstat (limited to 'internal/models/atom_test.go')
| -rw-r--r-- | internal/models/atom_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/internal/models/atom_test.go b/internal/models/atom_test.go index 537d232..3ed4774 100644 --- a/internal/models/atom_test.go +++ b/internal/models/atom_test.go @@ -123,36 +123,6 @@ func TestMealToAtom(t *testing.T) { } } -func TestBugToAtom(t *testing.T) { - now := time.Now() - bug := Bug{ - ID: 42, - Description: "Something is broken", - CreatedAt: now, - } - - atom := BugToAtom(bug) - - if atom.ID != "bug-42" { - t.Errorf("Expected ID 'bug-42', got '%s'", atom.ID) - } - if atom.Title != "Something is broken" { - t.Errorf("Expected title 'Something is broken', got '%s'", atom.Title) - } - if atom.Source != SourceBug { - t.Errorf("Expected source Bug, got '%s'", atom.Source) - } - if atom.Type != TypeBug { - t.Errorf("Expected type Bug, got '%s'", atom.Type) - } - if atom.Priority != 3 { - t.Errorf("Expected high priority 3, got %d", atom.Priority) - } - if atom.SourceIcon != "🐛" { - t.Error("Expected bug icon") - } -} - func TestAtom_ComputeUIFields(t *testing.T) { // Test nil due date t.Run("nil due date", func(t *testing.T) { |
