diff options
author | 2024-11-21 12:13:55 +0100 | |
---|---|---|
committer | 2024-11-21 12:13:55 +0100 | |
commit | c2029df9bcfa05c19cf3644f2e686da35e267c68 (patch) | |
tree | 0b21c0bca8cc25743b2679ed5f026ed0afafd16f /internal/validate/formvalidation_test.go | |
parent | [chore] Bump cross-spawn from 7.0.3 to 7.0.6 in /web/source (#3552) (diff) | |
download | gotosocial-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/validate/formvalidation_test.go')
-rw-r--r-- | internal/validate/formvalidation_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/validate/formvalidation_test.go b/internal/validate/formvalidation_test.go index 7c1ff7b7f..93762cd37 100644 --- a/internal/validate/formvalidation_test.go +++ b/internal/validate/formvalidation_test.go @@ -345,7 +345,7 @@ func (suite *ValidationTestSuite) TestValidateEmojiShortcode() { }, { shortcode: "p", - ok: false, + ok: true, }, { shortcode: "pp", @@ -361,6 +361,10 @@ func (suite *ValidationTestSuite) TestValidateEmojiShortcode() { }, { shortcode: "_", + ok: true, + }, + { + shortcode: "", ok: false, }, { |