nestjs-security-module
Version:
A plug-and-play NestJS security module with CORS, Helmet, rate limiting, audit logging, CSP, XSS sanitization, and more.
19 lines (14 loc) • 474 B
text/typescript
import { Test, TestingModule } from '@nestjs/testing';
import { SecurityService } from './security.service';
describe('SecurityService', () => {
let service: SecurityService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [SecurityService],
}).compile();
service = module.get<SecurityService>(SecurityService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});