summaryrefslogtreecommitdiffstats
path: root/api/channel_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-03 12:25:32 -0500
committerChristopher Speller <crspeller@gmail.com>2017-03-03 12:25:32 -0500
commite739a91c94049aa62cfe76b9c6686fb18184232b (patch)
tree37d7f65f9f3fd59daea9d80473fd595eacd8c0f9 /api/channel_test.go
parent2e911b77c3386833f8f0cea82c7b6b3e5583a08e (diff)
downloadchat-e739a91c94049aa62cfe76b9c6686fb18184232b.tar.gz
chat-e739a91c94049aa62cfe76b9c6686fb18184232b.tar.bz2
chat-e739a91c94049aa62cfe76b9c6686fb18184232b.zip
Fix JS error when receiving reply during channel switch (#5582)
Diffstat (limited to 'api/channel_test.go')
-rw-r--r--api/channel_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/channel_test.go b/api/channel_test.go
index d8da3374b..93c79d416 100644
--- a/api/channel_test.go
+++ b/api/channel_test.go
@@ -903,7 +903,6 @@ func TestGetChannel(t *testing.T) {
if _, err := Client.GetChannels(""); err == nil {
t.Fatal("should have failed - wrong team id")
}
-
}
func TestGetMoreChannelsPage(t *testing.T) {
@@ -2003,6 +2002,10 @@ func TestViewChannel(t *testing.T) {
t.Log(rdata.Member.MsgCount)
t.Fatal("message counts don't match")
}
+
+ if _, err := Client.DoApiPost(Client.GetTeamRoute()+"/channels/view", "garbage"); err == nil {
+ t.Fatal("should have been an error")
+ }
}
func TestGetChannelMembersByIds(t *testing.T) {