mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05: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 () => {
|
it('id is forbidden', async () => {
|
||||||
await expect(
|
await expect(
|
||||||
service.getNoteByIdOrAlias(forbiddenNoteId),
|
service.getNoteByIdOrAlias(forbiddenNoteId),
|
||||||
).rejects.toThrow(NotInDBError);
|
).rejects.toThrow(ForbiddenIdError);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue