diff --git a/test/public-api/notes.e2e-spec.ts b/test/public-api/notes.e2e-spec.ts index dda8ef9da..3492ff6d3 100644 --- a/test/public-api/notes.e2e-spec.ts +++ b/test/public-api/notes.e2e-spec.ts @@ -114,6 +114,15 @@ describe('Notes', () => { ), ).toEqual(content); }); + + it('fails with a existing alias', async () => { + await request(app.getHttpServer()) + .post('/notes/test2') + .set('Content-Type', 'text/markdown') + .send(content) + .expect('Content-Type', /json/) + .expect(400); + }); }); describe('DELETE /notes/{note}', () => {