Tests: Add unit test
This commit is contained in:
parent
808c8b01a9
commit
2f19cbcf6a
1 changed files with 12 additions and 0 deletions
12
internal/thumb/names_test.go
Normal file
12
internal/thumb/names_test.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package thumb
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestName_Jpeg(t *testing.T) {
|
||||
t.Run("ResamplePng, FillCenter", func(t *testing.T) {
|
||||
assert.Equal(t, "tile_50.jpg", Tile50.Jpeg())
|
||||
})
|
||||
}
|
Loading…
Add table
Reference in a new issue