fix: lints

This commit is contained in:
bo0tzz
2026-07-28 17:13:56 +02:00
parent af7c177f13
commit 5c4c24460b
+6 -6
View File
@@ -16,17 +16,17 @@ class TestController {
undecoratedRoute() {} undecoratedRoute() {}
} }
const contextFor = (handler: () => void) =>
({
getHandler: () => handler,
switchToHttp: () => ({ getRequest: () => ({ headers: {}, query: {}, path: '/' }) }),
}) as unknown as ExecutionContext;
describe(AuthGuard.name, () => { describe(AuthGuard.name, () => {
let sut: AuthGuard; let sut: AuthGuard;
let authService: AuthService; let authService: AuthService;
let mocks: ServiceMocks; let mocks: ServiceMocks;
const contextFor = (handler: () => void) =>
({
getHandler: () => handler,
switchToHttp: () => ({ getRequest: () => ({ headers: {}, query: {}, path: '/' }) }),
}) as unknown as ExecutionContext;
beforeEach(() => { beforeEach(() => {
({ sut: authService, mocks } = newTestService(AuthService)); ({ sut: authService, mocks } = newTestService(AuthService));
sut = new AuthGuard(mocks.logger as unknown as LoggingRepository, new Reflector(), authService); sut = new AuthGuard(mocks.logger as unknown as LoggingRepository, new Reflector(), authService);