mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-23 19:23:24 +00:00
test(notes.service): a forbidden id throws a ForbiddenIdError in getNoteByIdOrAlias method
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
c891a95588
commit
1c67622bf8
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ describe('NotesService', () => {
|
|||
it('id is forbidden', async () => {
|
||||
await expect(
|
||||
service.getNoteByIdOrAlias(forbiddenNoteId),
|
||||
).rejects.toThrow(NotInDBError);
|
||||
).rejects.toThrow(ForbiddenIdError);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue