From fbf28bbb4c74f30da586dec9c91f299957735318 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Sat, 6 Jul 2024 05:50:53 +0200 Subject: [PATCH] fix(api): remove / handler (#55428) --- api/src/app.ts | 3 --- api/src/server.test.ts | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/api/src/app.ts b/api/src/app.ts index 90acc333d47..96d720e235e 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -93,9 +93,6 @@ export const build = async ( void fastify.register(security); - fastify.get('/', async (_request, _reply) => { - return { hello: 'world' }; - }); // NOTE: Awaited to ensure `.use` is registered on `fastify` await fastify.register(express); diff --git a/api/src/server.test.ts b/api/src/server.test.ts index 97e22c3d41a..aa27bd59a0a 100644 --- a/api/src/server.test.ts +++ b/api/src/server.test.ts @@ -33,16 +33,6 @@ describe('server', () => { }); describe('GET /', () => { - test('have a 200 response', async () => { - const res = await superRequest('/', { method: 'GET' }); - expect(res.statusCode).toBe(200); - }); - - test('return { "hello": "world"}', async () => { - const res = await superRequest('/', { method: 'GET' }); - expect(res.body).toEqual({ hello: 'world' }); - }); - test('should have OWASP recommended headers', async () => { const res = await superRequest('/', { method: 'GET' }); expect(res.headers).toMatchObject({