mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Docs: Add more documentation to the public api
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
0e44f545a1
commit
53f5093630
6 changed files with 199 additions and 7 deletions
|
@ -146,7 +146,7 @@ describe('Notes', () => {
|
|||
describe('DELETE /notes/{note}', () => {
|
||||
it('works with an existing alias', async () => {
|
||||
await notesService.createNote(content, 'test3', user);
|
||||
await request(app.getHttpServer()).delete('/notes/test3').expect(200);
|
||||
await request(app.getHttpServer()).delete('/notes/test3').expect(204);
|
||||
await expect(notesService.getNoteByIdOrAlias('test3')).rejects.toEqual(
|
||||
new NotInDBError("Note with id/alias 'test3' not found."),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue