test: fix note e2e test 'fails with non-existing alias'

Because the rejection now happens automatically in the permissions guard it does not get to the controller method and does not report the Content-Type to text/markdown

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-11-21 18:04:47 +01:00
parent 40e8acb6bb
commit 16cd42f197

View file

@ -396,7 +396,6 @@ describe('Notes', () => {
// check if a missing note correctly returns 404
await request(testSetup.app.getHttpServer())
.get('/api/v2/notes/i_dont_exist/content')
.expect('Content-Type', /text\/markdown/)
.expect(404);
});
});