mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -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
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
.mockImplementation(() => createQueryBuilder);
|
.mockImplementation(() => createQueryBuilder);
|
||||||
|
|
||||||
|
jest.spyOn(authTokenRepo, 'find').mockResolvedValue([authToken]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be defined', () => {
|
it('should be defined', () => {
|
||||||
|
|
Loading…
Reference in a new issue