aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils')
-rw-r--r--server/tests/utils/users/users.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/tests/utils/users/users.ts b/server/tests/utils/users/users.ts
index fc6b26c50..d31e57a25 100644
--- a/server/tests/utils/users/users.ts
+++ b/server/tests/utils/users/users.ts
@@ -132,6 +132,7 @@ function updateMyUser (options: {
132 nsfwPolicy?: NSFWPolicyType, 132 nsfwPolicy?: NSFWPolicyType,
133 email?: string, 133 email?: string,
134 autoPlayVideo?: boolean 134 autoPlayVideo?: boolean
135 displayName?: string,
135 description?: string 136 description?: string
136}) { 137}) {
137 const path = '/api/v1/users/me' 138 const path = '/api/v1/users/me'
@@ -142,6 +143,7 @@ function updateMyUser (options: {
142 if (options.autoPlayVideo !== undefined && options.autoPlayVideo !== null) toSend['autoPlayVideo'] = options.autoPlayVideo 143 if (options.autoPlayVideo !== undefined && options.autoPlayVideo !== null) toSend['autoPlayVideo'] = options.autoPlayVideo
143 if (options.email !== undefined && options.email !== null) toSend['email'] = options.email 144 if (options.email !== undefined && options.email !== null) toSend['email'] = options.email
144 if (options.description !== undefined && options.description !== null) toSend['description'] = options.description 145 if (options.description !== undefined && options.description !== null) toSend['description'] = options.description
146 if (options.displayName !== undefined && options.displayName !== null) toSend['displayName'] = options.displayName
145 147
146 return makePutBodyRequest({ 148 return makePutBodyRequest({
147 url: options.url, 149 url: options.url,