From c9076e3030f1c69dc1b2c44f28e8417824a7e256 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Mon, 26 Aug 2024 15:01:12 +0200 Subject: [PATCH] fix: Fixed wrong tests --- pkg/converters/csv_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/converters/csv_test.go b/pkg/converters/csv_test.go index 1d05b7c..0091f3a 100644 --- a/pkg/converters/csv_test.go +++ b/pkg/converters/csv_test.go @@ -27,6 +27,7 @@ func TestConvert(t *testing.T) { FieldMap: nil, HasHeaders: true, Headers: nil, + Location: time.UTC, } calendar := ical.NewCalendar() @@ -61,6 +62,7 @@ func TestConvertSeparater(t *testing.T) { FieldMap: nil, HasHeaders: true, Headers: nil, + Location: time.UTC, } calendar := ical.NewCalendar() @@ -85,8 +87,8 @@ func TestConvertTimestampFormat(t *testing.T) { DTSTART,DTEND,SUMMARY %s,%s,Test `, - startTime.Format(time.RFC3339), - endTime.Format(time.RFC3339), + startTime.Format("2006-01-02 15:04"), + endTime.Format("2006-01-02 15:04"), ) converter := CSVConverter{ @@ -95,6 +97,7 @@ func TestConvertTimestampFormat(t *testing.T) { FieldMap: nil, HasHeaders: true, Headers: nil, + Location: time.UTC, } calendar := ical.NewCalendar() @@ -133,6 +136,7 @@ func TestConvertFieldMap(t *testing.T) { }, HasHeaders: true, Headers: nil, + Location: time.UTC, } calendar := ical.NewCalendar() @@ -166,6 +170,7 @@ func TestConvertNoHeaders(t *testing.T) { FieldMap: nil, HasHeaders: false, Headers: []string{"DTSTART", "DTEND", "SUMMARY"}, + Location: time.UTC, } calendar := ical.NewCalendar()