2023-03-20 11:40:46 +01:00
|
|
|
package thumb
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestMaxAge_String(t *testing.T) {
|
2023-03-20 13:13:56 +01:00
|
|
|
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())
|
2023-03-20 11:40:46 +01:00
|
|
|
})
|
|
|
|
}
|