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:
Philip Molares 2022-02-06 23:11:34 +01:00
parent c891a95588
commit 1c67622bf8

View file

@ -321,7 +321,7 @@ describe('NotesService', () => {
it('id is forbidden', async () => {
await expect(
service.getNoteByIdOrAlias(forbiddenNoteId),
).rejects.toThrow(NotInDBError);
).rejects.toThrow(ForbiddenIdError);
});
});
});