summaryrefslogtreecommitdiffstats
path: root/api/command_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-03-17 09:51:45 -0700
committer=Corey Hulen <corey@hulen.com>2016-03-17 09:51:45 -0700
commit5273559ca101d8ae4a55104f18081ab011e5068c (patch)
treef152b638101b224ffc59ed000e384b651915266a /api/command_test.go
parent074f15f761ff50388b58e35e8354c139c06a807e (diff)
parent128204b47a9ff89bf2bea97cd21d3b8892151e69 (diff)
downloadchat-5273559ca101d8ae4a55104f18081ab011e5068c.tar.gz
chat-5273559ca101d8ae4a55104f18081ab011e5068c.tar.bz2
chat-5273559ca101d8ae4a55104f18081ab011e5068c.zip
Fixing merge
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)