From 9b5b2831eec220582e39d626a3ff16c3efc02744 Mon Sep 17 00:00:00 2001 From: Akil Darjean Date: Thu, 19 Sep 2019 12:01:30 -0500 Subject: [PATCH] Migrate tests from 'app/command_mute_test.go' to use testify (#12240) --- app/command_mute_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/command_mute_test.go b/app/command_mute_test.go index cef422468c..5c7d95d47d 100644 --- a/app/command_mute_test.go +++ b/app/command_mute_test.go @@ -23,13 +23,13 @@ func TestMuteCommandNoChannel(t *testing.T) { channel1 := th.BasicChannel channel1M, channel1MError := th.App.GetChannelMember(channel1.Id, th.BasicUser.Id) - if channel1MError != nil { - t.Fatal("User is not a member of channel 1") - } - - if channel1M.NotifyProps[model.MARK_UNREAD_NOTIFY_PROP] == model.CHANNEL_NOTIFY_MENTION { - t.Fatal("channel shouldn't be muted on initial setup") - } + assert.Nil(t, channel1MError, "User is not a member of channel 1") + assert.NotEqual( + t, + channel1M.NotifyProps[model.MARK_UNREAD_NOTIFY_PROP], + model.CHANNEL_NOTIFY_MENTION, + "Channel shouldn't be muted on initial setup", + ) cmd := &MuteProvider{} resp := cmd.DoCommand(th.App, &model.CommandArgs{