mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -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
3e4abb561d
commit
988909eb0b
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