Skip to content

Commit 106005b

Browse files
committed
Test for different units message
1 parent 4157e32 commit 106005b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/status/main_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,15 @@ func TestCompareIncreaseEqual(t *testing.T) {
6363
t.Error(description)
6464
}
6565
}
66+
func TestCompareDiffUnits(t *testing.T) {
67+
state, description, err := compareStats("35mb", "35gb", "master", "increase")
68+
if err != nil {
69+
t.Error(err)
70+
}
71+
if state != stateError {
72+
t.Error(state)
73+
}
74+
if description != "Stats are not the same units: mb vs gb" {
75+
t.Error(description)
76+
}
77+
}

0 commit comments

Comments
 (0)