test: remove redundant JwtAuthGuard mock in unit test file

This commit is contained in:
Mathis H (Avnyr) 2025-05-16 14:44:28 +02:00
parent cd5ad2e1e4
commit a56e774892

View File

@ -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;