mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 23:54:42 -04: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…
Add table
Add a link
Reference in a new issue