MM-19163 - Refactored team search tests to testify (#12607)

Этот коммит содержится в:
Victor Hugo Avelar Ossorio
2019-10-07 15:27:53 +02:00
коммит произвёл Maria A Nunez
родитель 2ef5712a08
Коммит bb203bad4a

Просмотреть файл

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