From 0cb3b6599852f4a682ef7c485821c7c115ac9d63 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 21 Nov 2021 18:04:47 +0100 Subject: [PATCH] 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 --- test/public-api/notes.e2e-spec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/test/public-api/notes.e2e-spec.ts b/test/public-api/notes.e2e-spec.ts index 3c608e302..bc8093e6d 100644 --- a/test/public-api/notes.e2e-spec.ts +++ b/test/public-api/notes.e2e-spec.ts @@ -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); }); });