photoprism/internal/entity/auth_user_report_test.go
2023-08-11 14:48:28 +02:00

17 lines
274 B
Go

package entity
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestUser_Report(t *testing.T) {
m := FindUserByName("alice")
r, _ := m.Report(false)
assert.GreaterOrEqual(t, len(r), 1)
r2, _ := m.Report(true)
assert.GreaterOrEqual(t, len(r2), 1)
}