Skip to content

Commit

Permalink
Thumbs: Update assertions in internal/thumb/report_test.go #4300
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed May 29, 2024
1 parent 9fef64c commit 4ad6e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/thumb/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
func TestReport(t *testing.T) {
t.Run("Videos", func(t *testing.T) {
rows, cols := Report(VideoSizes, true)
assert.Equal(t, 2, len(cols))
assert.GreaterOrEqual(t, 2, len(cols))
assert.Equal(t, len(VideoSizes), len(rows))
})
t.Run("Thumbs", func(t *testing.T) {
rows, cols := Report(Sizes.All(), false)
assert.Equal(t, 5, len(cols))
assert.GreaterOrEqual(t, 6, len(cols))
assert.Equal(t, len(Sizes), len(rows))
})
}

0 comments on commit 4ad6e50

Please sign in to comment.