summaryrefslogtreecommitdiff
path: root/internal/api/client/admin/emojiupdate_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-11-21 12:13:55 +0100
committerLibravatar GitHub <noreply@github.com>2024-11-21 12:13:55 +0100
commitc2029df9bcfa05c19cf3644f2e686da35e267c68 (patch)
tree0b21c0bca8cc25743b2679ed5f026ed0afafd16f /internal/api/client/admin/emojiupdate_test.go
parent[chore] Bump cross-spawn from 7.0.3 to 7.0.6 in /web/source (#3552) (diff)
downloadgotosocial-c2029df9bcfa05c19cf3644f2e686da35e267c68.tar.xz
[feature] Allow emoji shortcode to be 1-character length (#3556)
* [feature] Allow emoji shortcode to be 1-character length * testerino fixeroni * spaghet
Diffstat (limited to 'internal/api/client/admin/emojiupdate_test.go')
-rw-r--r--internal/api/client/admin/emojiupdate_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/admin/emojiupdate_test.go b/internal/api/client/admin/emojiupdate_test.go
index 17eb05fd9..b6dffa887 100644
--- a/internal/api/client/admin/emojiupdate_test.go
+++ b/internal/api/client/admin/emojiupdate_test.go
@@ -560,7 +560,7 @@ func (suite *EmojiUpdateTestSuite) TestEmojiUpdateCopyEmptyShortcode() {
b, err := io.ReadAll(result.Body)
suite.NoError(err)
- suite.Equal(`{"error":"Bad Request: shortcode did not pass validation, must be between 2 and 30 characters, letters, numbers, and underscores only"}`, string(b))
+ suite.Equal(`{"error":"Bad Request: shortcode did not pass validation, must be between 1 and 30 characters, letters, numbers, and underscores only"}`, string(b))
}
func (suite *EmojiUpdateTestSuite) TestEmojiUpdateCopyNoShortcode() {