Files
Gogs/internal/avatar/avatar_test.go

15 lines
264 B
Go
Raw Permalink Normal View History

package avatar
import (
"testing"
2014-03-23 18:13:23 +08:00
"github.com/stretchr/testify/assert"
)
func Test_RandomImage(t *testing.T) {
_, err := RandomImage([]byte("gogs@local"))
assert.NoError(t, err)
_, err = RandomImageWithSize(0, []byte("gogs@local"))
assert.Error(t, err)
2014-03-24 21:16:00 +08:00
}