summaryrefslogtreecommitdiffstats
path: root/api/command_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-17 11:45:42 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-17 11:45:42 -0400
commit6b9d89522475c84e7833d17179b3af65b92240d6 (patch)
treecf5fc21b47bdf745a47541eb8beb2c85084a5015 /api/command_test.go
parentd42459729c6015b07c2f0d872a44212e93bccb39 (diff)
parentc94b7b9d4fe2c51e6427888d9ba6e3d7b8eb321c (diff)
downloadchat-6b9d89522475c84e7833d17179b3af65b92240d6.tar.gz
chat-6b9d89522475c84e7833d17179b3af65b92240d6.tar.bz2
chat-6b9d89522475c84e7833d17179b3af65b92240d6.zip
Merge pull request #2169 from kernicPanel/external-slashcommands-management
PLT-2183 Slash command auto-complete
Diffstat (limited to 'api/command_test.go')
-rw-r--r--api/command_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/command_test.go b/api/command_test.go
index 22e2bd666..8ca8b65b1 100644
--- a/api/command_test.go
+++ b/api/command_test.go
@@ -24,7 +24,10 @@ func TestListCommands(t *testing.T) {
Client.LoginByEmail(team.Name, user1.Email, "pwd")
- if results, err := Client.ListCommands(); err != nil {
+ channel1 := &model.Channel{DisplayName: "AA", Name: "aa" + model.NewId() + "a", Type: model.CHANNEL_OPEN, TeamId: team.Id}
+ channel1 = Client.Must(Client.CreateChannel(channel1)).Data.(*model.Channel)
+
+ if results, err := Client.ListCommands(channel1.Id, "/test"); err != nil {
t.Fatal(err)
} else {
commands := results.Data.([]*model.Command)