diff options
Diffstat (limited to 'api/command_shortcuts_test.go')
-rw-r--r-- | api/command_shortcuts_test.go | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/api/command_shortcuts_test.go b/api/command_shortcuts_test.go index ce5019049..287223ec3 100644 --- a/api/command_shortcuts_test.go +++ b/api/command_shortcuts_test.go @@ -4,23 +4,10 @@ package api import ( - "github.com/mattermost/platform/model" - "strings" "testing" ) func TestShortcutsCommand(t *testing.T) { th := Setup().InitBasic() - Client := th.BasicClient - channel := th.BasicChannel - - rs := Client.Must(Client.Command(channel.Id, "/shortcuts ")).Data.(*model.CommandResponse) - if !strings.Contains(rs.Text, "CTRL") { - t.Fatal("failed to display shortcuts") - } - - rs = Client.Must(Client.Command(channel.Id, "/shortcuts mac")).Data.(*model.CommandResponse) - if !strings.Contains(rs.Text, "CMD") { - t.Fatal("failed to display Mac shortcuts") - } + th.BasicClient.Must(th.BasicClient.Command(th.BasicChannel.Id, "/shortcuts")) } |