From 928b07f9402b88ff0a16279aa4ccd35bf54f8e9d Mon Sep 17 00:00:00 2001 From: Nicholas Lim Date: Fri, 4 Oct 2019 17:07:01 +0800 Subject: [PATCH] change model/suggest_command_test.go to use assert (#12575) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merging! happy hacktoberfest! 🥇 --- model/suggest_command_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/suggest_command_test.go b/model/suggest_command_test.go index 96f49e301a..da8f041a69 100644 --- a/model/suggest_command_test.go +++ b/model/suggest_command_test.go @@ -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") }