summaryrefslogtreecommitdiffstats
path: root/api/command_shortcuts_test.go
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-07-14 15:57:06 -0400
committerCorey Hulen <corey@hulen.com>2016-07-14 11:57:06 -0800
commit34077a407b1aeab2d1510471d59a50108f0ec699 (patch)
treecefdcd423861af2566d752b46cb80d394312982c /api/command_shortcuts_test.go
parent0b200cc9245193aa01b00ecc8bf41483f6b32e7e (diff)
downloadchat-34077a407b1aeab2d1510471d59a50108f0ec699.tar.gz
chat-34077a407b1aeab2d1510471d59a50108f0ec699.tar.bz2
chat-34077a407b1aeab2d1510471d59a50108f0ec699.zip
made /shortcuts separate for mac (#3571)
Diffstat (limited to 'api/command_shortcuts_test.go')
-rw-r--r--api/command_shortcuts_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/api/command_shortcuts_test.go b/api/command_shortcuts_test.go
index a00bd3440..01c56b465 100644
--- a/api/command_shortcuts_test.go
+++ b/api/command_shortcuts_test.go
@@ -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")
+ }
}