Migrate test from user_search_test.go to use testify (#12648)

This commit is contained in:
Kashif Jamal Soofi
2019-10-11 14:07:51 +01:00
committed by Jesús Espino
parent 60def7a488
commit 955242e404

View File

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