made /shortcuts separate for mac (#3571)

Этот коммит содержится в:
David Lu
2016-07-14 15:57:06 -04:00
коммит произвёл Corey Hulen
родитель 0b200cc924
Коммит 34077a407b
4 изменённых файлов: 27 добавлений и 3 удалений

Просмотреть файл

@@ -15,7 +15,12 @@ func TestShortcutsCommand(t *testing.T) {
channel := th.BasicChannel
rs := Client.Must(Client.Command(channel.Id, "/shortcuts ", false)).Data.(*model.CommandResponse)
if !strings.Contains(rs.Text, "ALT") {
if !strings.Contains(rs.Text, "CTRL") {
t.Fatal("failed to display shortcuts")
}
rs = Client.Must(Client.Command(channel.Id, "/shortcuts mac", false)).Data.(*model.CommandResponse)
if !strings.Contains(rs.Text, "CMD") {
t.Fatal("failed to display Mac shortcuts")
}
}