mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
fix: lints
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user