olivetin/internal/grpcapi/emoji_test.go

13 lines
310 B
Go

package grpcapi
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestGetEmojiByShortName(t *testing.T) {
assert.Equal(t, "😀", lookupHTMLIcon("smile"), "Find an eomji by short name")
assert.Equal(t, "notfound", lookupHTMLIcon("notfound"), "Find an eomji by undefined short name")
}