test(auth-service): add mock for find

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-12-30 12:57:58 +01:00 committed by Yannick Bungers
parent ebb8b10804
commit 7233f862f2

View file

@ -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', () => {