use testify's assert on channel_search's tests (#12677)

Этот коммит содержится в:
Alfian Dhimas Nur Marita
2019-10-11 02:55:07 +07:00
коммит произвёл Jesús Espino
родитель 25b340ecb7
Коммит 68b5c5896b

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

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