mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 23:05:30 -04:00
fix(api/private/me): require and document displayName
This renames the argument in the POST /profile route to `displayName` to be more consistent with the UserDTO. It also adds OpenAPI docs. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
d6ea4d29fe
commit
6944094b9b
2 changed files with 13 additions and 4 deletions
|
@ -103,7 +103,7 @@ describe('Me', () => {
|
|||
await agent
|
||||
.post('/api/private/me/profile')
|
||||
.send({
|
||||
name: newDisplayName,
|
||||
displayName: newDisplayName,
|
||||
})
|
||||
.expect(201);
|
||||
const dbUser = await testSetup.userService.getUserByUsername('hardcoded');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue