From 6d5043b91d2ed7a6db897cb70f4dd43022b13bee Mon Sep 17 00:00:00 2001 From: Jamie Maynard Date: Thu, 19 Sep 2024 10:56:07 +0100 Subject: [PATCH] Fix linting issues --- src/routes/publish.ts | 2 +- test/app.test.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/routes/publish.ts b/src/routes/publish.ts index 5ff104a..50ee8c8 100644 --- a/src/routes/publish.ts +++ b/src/routes/publish.ts @@ -1,6 +1,6 @@ import { Blob } from 'buffer'; -import { Request, Response, Router } from 'express'; +import { Response, Router } from 'express'; import multer from 'multer'; import { logger } from '../utils/logger'; diff --git a/test/app.test.ts b/test/app.test.ts index 7074dd5..341de37 100644 --- a/test/app.test.ts +++ b/test/app.test.ts @@ -4,8 +4,6 @@ import request from 'supertest'; import { Request, Response, NextFunction } from 'express'; import { http, HttpResponse } from 'msw'; import { setupServer } from 'msw/node'; -import { CookieAccessInfo } from 'cookiejar'; -import supertest from 'supertest'; import { ENGLISH, WELSH, i18next } from '../src/middleware/translation'; import app from '../src/app'; @@ -19,7 +17,6 @@ declare module 'express-session' { } const t = i18next.t; -let sessionCookies: string; jest.mock('../src/middleware/ensure-authenticated', () => ({ ensureAuthenticated: (req: Request, res: Response, next: NextFunction) => next()