Added message and tests

Remember that lower vs uppercase matters

Accidentally removed \n

Added more

Formatted
Этот коммит содержится в:
David Lu
2016-05-19 07:35:12 -04:00
коммит произвёл Joram Wilander
родитель 4f34730b3f
Коммит 5ace856e72
3 изменённых файлов: 70 добавлений и 0 удалений

21
api/command_shortcuts_test.go Обычный файл
Просмотреть файл

@@ -0,0 +1,21 @@
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
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 ", false)).Data.(*model.CommandResponse)
if !strings.Contains(rs.Text, "ALT") {
t.Fatal("failed to display shortcuts")
}
}