Migrate tests from 'app/command_mute_test.go' to use testify (#12240)
Этот коммит содержится в:
коммит произвёл
Miguel de la Cruz
родитель
e42c40b4b5
Коммит
9b5b2831ee
@@ -23,13 +23,13 @@ func TestMuteCommandNoChannel(t *testing.T) {
|
|||||||
channel1 := th.BasicChannel
|
channel1 := th.BasicChannel
|
||||||
channel1M, channel1MError := th.App.GetChannelMember(channel1.Id, th.BasicUser.Id)
|
channel1M, channel1MError := th.App.GetChannelMember(channel1.Id, th.BasicUser.Id)
|
||||||
|
|
||||||
if channel1MError != nil {
|
assert.Nil(t, channel1MError, "User is not a member of channel 1")
|
||||||
t.Fatal("User is not a member of channel 1")
|
assert.NotEqual(
|
||||||
}
|
t,
|
||||||
|
channel1M.NotifyProps[model.MARK_UNREAD_NOTIFY_PROP],
|
||||||
if channel1M.NotifyProps[model.MARK_UNREAD_NOTIFY_PROP] == model.CHANNEL_NOTIFY_MENTION {
|
model.CHANNEL_NOTIFY_MENTION,
|
||||||
t.Fatal("channel shouldn't be muted on initial setup")
|
"Channel shouldn't be muted on initial setup",
|
||||||
}
|
)
|
||||||
|
|
||||||
cmd := &MuteProvider{}
|
cmd := &MuteProvider{}
|
||||||
resp := cmd.DoCommand(th.App, &model.CommandArgs{
|
resp := cmd.DoCommand(th.App, &model.CommandArgs{
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user