1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: adapt tests and bump version

This commit is contained in:
Ferdinand Mütsch
2021-06-12 11:26:15 +02:00
parent 1e4e530c21
commit 7bcd6890d1
4 changed files with 557 additions and 532 deletions

View File

@@ -6,7 +6,7 @@ import (
"time"
)
func TestSummary_FillUnknown(t *testing.T) {
func TestSummary_FillMissing(t *testing.T) {
testDuration := 10 * time.Minute
sut := &Summary{
@@ -33,6 +33,10 @@ func TestSummary_FillUnknown(t *testing.T) {
assert.Equal(t, UnknownSummaryKey, l[0].Key)
assert.Equal(t, testDuration, l[0].TotalFixed())
}
assert.Len(t, sut.Labels, 1)
assert.Equal(t, DefaultProjectLabel, sut.Labels[0].Key)
assert.Equal(t, testDuration, sut.Labels[0].TotalFixed())
}
func TestSummary_TotalTimeBy(t *testing.T) {