mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
test: fix note e2e test 'fails, when user can't read note'
Because the rejection now happens automatically in the permissions guard it now returns a 403 instead of 401 Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d27c531d9a
commit
40e8acb6bb
2 changed files with 2 additions and 2 deletions
|
@ -349,7 +349,7 @@ describe('Notes', () => {
|
|||
await agent
|
||||
.get(`/api/private/notes/${alias}/media/`)
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(401);
|
||||
.expect(403);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue