Skip to content

Commit

Permalink
test: fix notification image data and URL validation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Oct 5, 2024
1 parent 54abd44 commit c61698f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ical/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,13 +651,7 @@ END:VCALENDAR
}

notification := notifications[0]
if notification.ImageData == nil {
t.Errorf("Expected non-nil ImageData, got nil")
}
if notification.ImageUrl == "" {
t.Errorf("Expected non-empty ImageUrl, got empty")
}
if notification.ImageData == nil || notification.ImageUrl == "" {
if notification.ImageData == nil && notification.ImageUrl == "" {
t.Errorf("Both ImageData and ImageUrl should not be empty")
}
}
Expand Down

0 comments on commit c61698f

Please sign in to comment.