mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
This commit is contained in:
committed by
Jesús Espino
parent
7f8a894592
commit
197e336ddc
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user