summaryrefslogtreecommitdiffstats
path: root/api4/emoji_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/emoji_test.go')
-rw-r--r--api4/emoji_test.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/api4/emoji_test.go b/api4/emoji_test.go
index dcd6dddb7..2ca18a9cc 100644
--- a/api4/emoji_test.go
+++ b/api4/emoji_test.go
@@ -173,7 +173,7 @@ func TestGetEmojiList(t *testing.T) {
emojis[idx] = emoji
}
- listEmoji, resp := Client.GetEmojiList()
+ listEmoji, resp := Client.GetEmojiList(0, 100)
CheckNoError(t, resp)
for _, emoji := range emojis {
found := false
@@ -190,7 +190,7 @@ func TestGetEmojiList(t *testing.T) {
_, resp = Client.DeleteEmoji(emojis[0].Id)
CheckNoError(t, resp)
- listEmoji, resp = Client.GetEmojiList()
+ listEmoji, resp = Client.GetEmojiList(0, 100)
CheckNoError(t, resp)
found := false
for _, savedEmoji := range listEmoji {
@@ -202,6 +202,13 @@ func TestGetEmojiList(t *testing.T) {
t.Fatalf("should not get a deleted emoji %v", emojis[0].Id)
}
}
+
+ listEmoji, resp = Client.GetEmojiList(0, 1)
+ CheckNoError(t, resp)
+
+ if len(listEmoji) != 1 {
+ t.Fatal("should only return 1")
+ }
}
func TestDeleteEmoji(t *testing.T) {