emoji_test.go 309 B

123456789101112
  1. package config
  2. import (
  3. "github.com/stretchr/testify/assert"
  4. "testing"
  5. )
  6. func TestGetEmojiByShortName(t *testing.T) {
  7. assert.Equal(t, "😀", lookupHTMLIcon("smile"), "Find an eomji by short name")
  8. assert.Equal(t, "notfound", lookupHTMLIcon("notfound"), "Find an eomji by undefined short name")
  9. }