From c61698fc0587a6d117821bf22b02c109517e2fc2 Mon Sep 17 00:00:00 2001 From: revelaction <96388231+revelaction@users.noreply.github.com> Date: Sat, 5 Oct 2024 23:58:48 +0200 Subject: [PATCH] test: fix notification image data and URL validation logic --- ical/parse_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ical/parse_test.go b/ical/parse_test.go index a383c4e..f6bf430 100644 --- a/ical/parse_test.go +++ b/ical/parse_test.go @@ -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") } }