From a84d434982405882414b4a756e513ef4a461b6ce Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Sun, 7 Jan 2024 09:58:32 +0530 Subject: [PATCH] test: remove regression test, since it is fixed in starter kit --- tests/server.spec.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/server.spec.ts b/tests/server.spec.ts index 7024961..8c4f5af 100644 --- a/tests/server.spec.ts +++ b/tests/server.spec.ts @@ -958,24 +958,6 @@ test.group('Server | error handler', () => { }) test.group('Server | force content negotiation', () => { - test('set accept header when forceContentNegotiationTo is a string', async ({ assert }) => { - const app = new AppFactory().create(BASE_URL, () => {}) - const server = new ServerFactory().merge({ app }).create() - const httpServer = createServer(server.handle.bind(server)) - await app.init() - - server.use([]) - await server.boot() - - server.getRouter().get('/', async ({ request, response }) => { - response.send(request.header('accept')) - }) - await server.boot() - - const { text } = await supertest(httpServer).get('/').expect(200) - assert.equal(text, 'application/json') - }).fails('Ship a middleware for this') - test('find if the signed url signature is valid', async ({ assert }) => { const app = new AppFactory().create(BASE_URL, () => {}) const server = new ServerFactory().merge({ app }).create()