summaryrefslogtreecommitdiffstats
path: root/api/command_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-18 13:16:51 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-18 13:16:51 -0400
commit35320efe1afad87419992275ba555ddcbfcdf46b (patch)
tree52925b8521dd4b8c8291499f76c2ed3c278271f8 /api/command_test.go
parent6d586c7309cb0ddaca6580dd1520aef4ff554fb5 (diff)
downloadchat-35320efe1afad87419992275ba555ddcbfcdf46b.tar.gz
chat-35320efe1afad87419992275ba555ddcbfcdf46b.tar.bz2
chat-35320efe1afad87419992275ba555ddcbfcdf46b.zip
Revert "PLT-2183 Slash command auto-complete"
Diffstat (limited to 'api/command_test.go')
-rw-r--r--api/command_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/api/command_test.go b/api/command_test.go
index 8ca8b65b1..22e2bd666 100644
--- a/api/command_test.go
+++ b/api/command_test.go
@@ -24,10 +24,7 @@ func TestListCommands(t *testing.T) {
Client.LoginByEmail(team.Name, user1.Email, "pwd")
- 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 {
+ if results, err := Client.ListCommands(); err != nil {
t.Fatal(err)
} else {
commands := results.Data.([]*model.Command)