diff --git a/test/private-api/notes.e2e-spec.ts b/test/private-api/notes.e2e-spec.ts index 5e800e89d..efa5f5eb3 100644 --- a/test/private-api/notes.e2e-spec.ts +++ b/test/private-api/notes.e2e-spec.ts @@ -349,7 +349,7 @@ describe('Notes', () => { await agent .get(`/api/private/notes/${alias}/media/`) .expect('Content-Type', /json/) - .expect(401); + .expect(403); }); }); diff --git a/test/public-api/notes.e2e-spec.ts b/test/public-api/notes.e2e-spec.ts index 971af9913..3c608e302 100644 --- a/test/public-api/notes.e2e-spec.ts +++ b/test/public-api/notes.e2e-spec.ts @@ -464,7 +464,7 @@ describe('Notes', () => { await request(testSetup.app.getHttpServer()) .get(`/api/v2/notes/${alias}/media/`) .expect('Content-Type', /json/) - .expect(401); + .expect(403); }); });