summaryrefslogtreecommitdiff
path: root/internal/api/client/instance/instancepatch_test.go
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-06-13 12:21:26 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-13 12:21:26 +0200
commit8fb5a7e7f8d4201590e709989e8f0627e800c147 (patch)
tree2fb888f081584f33e198eadfcf218714c3824002 /internal/api/client/instance/instancepatch_test.go
parent[docs] Made Advanced its own section (#1883) (diff)
downloadgotosocial-8fb5a7e7f8d4201590e709989e8f0627e800c147.tar.xz
[Frontend] Settings for profile fields (#1885)
* get max emoji size from instance settings * expose (hardcoded) max amount of profile fields in instance api * basic profile field setting * fix profile field hook structure for updates * *twirls mustache* fix ze tests --------- Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/client/instance/instancepatch_test.go')
-rw-r--r--internal/api/client/instance/instancepatch_test.go18
1 files changed, 12 insertions, 6 deletions
diff --git a/internal/api/client/instance/instancepatch_test.go b/internal/api/client/instance/instancepatch_test.go
index 60c29c0f2..11382f83a 100644
--- a/internal/api/client/instance/instancepatch_test.go
+++ b/internal/api/client/instance/instancepatch_test.go
@@ -118,7 +118,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() {
},
"accounts": {
"allow_custom_css": true,
- "max_featured_tags": 10
+ "max_featured_tags": 10,
+ "max_profile_fields": 6
},
"emojis": {
"emoji_size_limit": 51200
@@ -221,7 +222,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() {
},
"accounts": {
"allow_custom_css": true,
- "max_featured_tags": 10
+ "max_featured_tags": 10,
+ "max_profile_fields": 6
},
"emojis": {
"emoji_size_limit": 51200
@@ -324,7 +326,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() {
},
"accounts": {
"allow_custom_css": true,
- "max_featured_tags": 10
+ "max_featured_tags": 10,
+ "max_profile_fields": 6
},
"emojis": {
"emoji_size_limit": 51200
@@ -478,7 +481,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() {
},
"accounts": {
"allow_custom_css": true,
- "max_featured_tags": 10
+ "max_featured_tags": 10,
+ "max_profile_fields": 6
},
"emojis": {
"emoji_size_limit": 51200
@@ -603,7 +607,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() {
},
"accounts": {
"allow_custom_css": true,
- "max_featured_tags": 10
+ "max_featured_tags": 10,
+ "max_profile_fields": 6
},
"emojis": {
"emoji_size_limit": 51200
@@ -743,7 +748,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() {
},
"accounts": {
"allow_custom_css": true,
- "max_featured_tags": 10
+ "max_featured_tags": 10,
+ "max_profile_fields": 6
},
"emojis": {
"emoji_size_limit": 51200