From a56e774892240fe91241ee85fe86523aefb65391 Mon Sep 17 00:00:00 2001 From: Avnyr Date: Fri, 16 May 2025 14:44:28 +0200 Subject: [PATCH] test: remove redundant JwtAuthGuard mock in unit test file --- .../src/modules/auth/guards/jwt-auth.guard.spec.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/backend/src/modules/auth/guards/jwt-auth.guard.spec.ts b/backend/src/modules/auth/guards/jwt-auth.guard.spec.ts index c0f5893..7d8328e 100644 --- a/backend/src/modules/auth/guards/jwt-auth.guard.spec.ts +++ b/backend/src/modules/auth/guards/jwt-auth.guard.spec.ts @@ -3,19 +3,6 @@ import { Reflector } from '@nestjs/core'; import { JwtAuthGuard } from './jwt-auth.guard'; import { IS_PUBLIC_KEY } from '../decorators/public.decorator'; -// Mock the AuthGuard -jest.mock('@nestjs/passport', () => { - return { - AuthGuard: jest.fn().mockImplementation(() => { - return class { - canActivate() { - return true; - } - }; - }), - }; -}); - describe('JwtAuthGuard', () => { let guard: JwtAuthGuard; let reflector: Reflector;