mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 23:54:42 -04:00
refactor: adapt for typeorm 0.3
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a07b5f54d1
commit
c4975e4783
21 changed files with 131 additions and 69 deletions
|
@ -98,7 +98,7 @@ describe('RevisionsService', () => {
|
|||
expect(await service.getRevision({} as Note, 1)).toEqual(revision);
|
||||
});
|
||||
it('throws if the revision is not in the databse', async () => {
|
||||
jest.spyOn(revisionRepo, 'findOne').mockResolvedValueOnce(undefined);
|
||||
jest.spyOn(revisionRepo, 'findOne').mockResolvedValueOnce(null);
|
||||
await expect(service.getRevision({} as Note, 1)).rejects.toThrow(
|
||||
NotInDBError,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue