Skip to content

Commit

Permalink
fix: Fixed wrong tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Aug 26, 2024
1 parent 02a0642 commit c9076e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/converters/csv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func TestConvert(t *testing.T) {
FieldMap: nil,
HasHeaders: true,
Headers: nil,
Location: time.UTC,
}

calendar := ical.NewCalendar()
Expand Down Expand Up @@ -61,6 +62,7 @@ func TestConvertSeparater(t *testing.T) {
FieldMap: nil,
HasHeaders: true,
Headers: nil,
Location: time.UTC,
}

calendar := ical.NewCalendar()
Expand All @@ -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{
Expand All @@ -95,6 +97,7 @@ func TestConvertTimestampFormat(t *testing.T) {
FieldMap: nil,
HasHeaders: true,
Headers: nil,
Location: time.UTC,
}

calendar := ical.NewCalendar()
Expand Down Expand Up @@ -133,6 +136,7 @@ func TestConvertFieldMap(t *testing.T) {
},
HasHeaders: true,
Headers: nil,
Location: time.UTC,
}

calendar := ical.NewCalendar()
Expand Down Expand Up @@ -166,6 +170,7 @@ func TestConvertNoHeaders(t *testing.T) {
FieldMap: nil,
HasHeaders: false,
Headers: []string{"DTSTART", "DTEND", "SUMMARY"},
Location: time.UTC,
}

calendar := ical.NewCalendar()
Expand Down

0 comments on commit c9076e3

Please sign in to comment.