From 34077a407b1aeab2d1510471d59a50108f0ec699 Mon Sep 17 00:00:00 2001 From: David Lu Date: Thu, 14 Jul 2016 15:57:06 -0400 Subject: made /shortcuts separate for mac (#3571) --- api/command_shortcuts_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'api/command_shortcuts_test.go') 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") + } } -- cgit v1.2.3-1-g7c22