mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 20:14:35 -04:00
Merge pull request #1047 from hedgedoc/docs/apidocs
This commit is contained in:
commit
6d8780de4b
21 changed files with 307 additions and 14 deletions
|
@ -104,7 +104,7 @@ describe('Notes', () => {
|
|||
const filename = url.split('/').pop();
|
||||
await request(app.getHttpServer())
|
||||
.delete('/media/' + filename)
|
||||
.expect(200);
|
||||
.expect(204);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
|
|
@ -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