mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
test(auth-service): add mock for find
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
ebb8b10804
commit
7233f862f2
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@ describe('AuthService', () => {
|
|||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
.mockImplementation(() => createQueryBuilder);
|
||||
|
||||
jest.spyOn(authTokenRepo, 'find').mockResolvedValue([authToken]);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
|
|
Loading…
Reference in a new issue