010d243d14
Signed-off-by: Michael Mayer <michael@photoprism.app>
16 lines
303 B
Go
16 lines
303 B
Go
package thumb
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestMaxAge_String(t *testing.T) {
|
|
t.Run("Hour", func(t *testing.T) {
|
|
assert.Equal(t, "3600", MaxAge(3600).String())
|
|
})
|
|
t.Run("Month", func(t *testing.T) {
|
|
assert.Equal(t, "2592000", MaxAge(2592000).String())
|
|
})
|
|
}
|