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 committed by David Mehren
parent 988909eb0b
commit 0cb3b65998
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

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