photoprism/pkg/react/react_test.go
Michael Mayer f5a8c5a45d Auth: Session and ACL enhancements #98 #1746
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-09-28 09:01:17 +02:00

19 lines
365 B
Go

package react
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestFind(t *testing.T) {
assert.Equal(t, Cheers, Find("cheers"))
assert.Equal(t, CatLove, Find("cat-love"))
assert.Equal(t, Emoji(""), Find("alien"))
}
func TestKnown(t *testing.T) {
assert.True(t, Known("🥂"))
assert.True(t, Known("😻"))
assert.False(t, Known("👽"))
}