mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Migrate test from user_search_test.go to use testify (#12648)
This commit is contained in:
committed by
Jesús Espino
parent
60def7a488
commit
955242e404
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user