From 7233f862f2930d528fb8d0adb34ab419c5988bb7 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 30 Dec 2022 12:57:58 +0100 Subject: [PATCH] test(auth-service): add mock for find Signed-off-by: David Mehren --- backend/src/auth/auth.service.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/auth/auth.service.spec.ts b/backend/src/auth/auth.service.spec.ts index 8069b1dbb..001671fe9 100644 --- a/backend/src/auth/auth.service.spec.ts +++ b/backend/src/auth/auth.service.spec.ts @@ -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', () => {