change model/suggest_command_test.go to use assert (#12575)

Merging! happy hacktoberfest! 🥇
Этот коммит содержится в:
Nicholas Lim
2019-10-04 17:07:01 +08:00
коммит произвёл Guillermo Vayá
родитель 54c4bef0d9
Коммит 928b07f940

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

@@ -6,6 +6,8 @@ package model
import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func TestSuggestCommandJson(t *testing.T) {
@@ -13,7 +15,5 @@ func TestSuggestCommandJson(t *testing.T) {
json := command.ToJson()
result := SuggestCommandFromJson(strings.NewReader(json))
if command.Suggestion != result.Suggestion {
t.Fatal("Ids do not match")
}
assert.Equal(t, command.Suggestion, result.Suggestion, "Ids do not match")
}