Skip to content

Commit

Permalink
test: update tests description
Browse files Browse the repository at this point in the history
  • Loading branch information
deadpyxel committed Feb 22, 2024
1 parent 890588e commit 61a19e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/journal/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func TestCalculateTotalTime(t *testing.T) {
t.Errorf("Expected %v, but got %v", expected, result)
}
})
t.Run("When slice contains valid entries, returns expected result with no errors", func(t *testing.T) {
t.Run("When slice contains valid entries returns expected result with no errors", func(t *testing.T) {
entries := []JournalEntry{
{StartTime: time.Date(2021, time.January, 1, 10, 0, 0, 0, time.UTC), EndTime: time.Date(2021, time.January, 1, 12, 0, 0, 0, time.UTC)},
{StartTime: time.Date(2021, time.January, 1, 14, 0, 0, 0, time.UTC), EndTime: time.Date(2021, time.January, 1, 16, 0, 0, 0, time.UTC)},
Expand All @@ -140,7 +140,7 @@ func TestCalculateTotalTime(t *testing.T) {
}
})

t.Run("When slice contains invalid entries, returns 0 with error", func(t *testing.T) {
t.Run("When slice contains invalid entries returns 0 with error", func(t *testing.T) {
entries := []JournalEntry{
{StartTime: time.Date(2021, time.January, 1, 10, 0, 0, 0, time.UTC), EndTime: time.Date(2021, time.January, 1, 9, 0, 0, 0, time.UTC)},
}
Expand Down

0 comments on commit 61a19e1

Please sign in to comment.