From ed56ad1193bb5bb0a81fb843a11eb90d3fed9861 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Apr 2018 10:03:40 +0200 Subject: Add ability to update the user display name/description --- server/tests/utils/users/users.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/tests/utils/users') 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: { nsfwPolicy?: NSFWPolicyType, email?: string, autoPlayVideo?: boolean + displayName?: string, description?: string }) { const path = '/api/v1/users/me' @@ -142,6 +143,7 @@ function updateMyUser (options: { if (options.autoPlayVideo !== undefined && options.autoPlayVideo !== null) toSend['autoPlayVideo'] = options.autoPlayVideo if (options.email !== undefined && options.email !== null) toSend['email'] = options.email if (options.description !== undefined && options.description !== null) toSend['description'] = options.description + if (options.displayName !== undefined && options.displayName !== null) toSend['displayName'] = options.displayName return makePutBodyRequest({ url: options.url, -- cgit v1.2.3