Migrate tests from "model/emoji_search_test.go" to use testify #12423 (#12508)

This commit is contained in:
Aliaksandr Kantsevoi
2019-10-11 14:08:34 +02:00
committed by Jesús Espino
parent 7f8a894592
commit 197e336ddc

View File

@@ -6,6 +6,8 @@ package model
import (
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func TestEmojiSearchJson(t *testing.T) {
@@ -13,7 +15,5 @@ func TestEmojiSearchJson(t *testing.T) {
json := emojiSearch.ToJson()
remojiSearch := EmojiSearchFromJson(strings.NewReader(json))
if emojiSearch.Term != remojiSearch.Term {
t.Fatal("Terms do not match")
}
require.Equal(t, emojiSearch.Term, remojiSearch.Term, "Terms do not match")
}