summaryrefslogtreecommitdiffstats
path: root/api/post_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/post_test.go')
-rw-r--r--api/post_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/post_test.go b/api/post_test.go
index 6558aeb5b..a72074547 100644
--- a/api/post_test.go
+++ b/api/post_test.go
@@ -1115,6 +1115,11 @@ func TestGetFlaggedPosts(t *testing.T) {
if len(r2.Order) != 0 {
t.Fatal("should not have gotten a flagged post")
}
+
+ Client.SetTeamId(model.NewId())
+ if _, err := Client.GetFlaggedPosts(0, 2); err == nil {
+ t.Fatal("should have failed - bad team id")
+ }
}
func TestGetMessageForNotification(t *testing.T) {