From e3a9612920acdb0f6d0e0ed01be1c968b91f4f43 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Thu, 25 Mar 2021 19:53:15 +0000 Subject: [PATCH] [Tests] remove optimize/image tests This test checks if image exists but this image was removed in the renaming process at this commit: 3ecadd0. Signed-off-by: Kawika Avilla --- src/optimize/bundles_route/bundles_route.test.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/optimize/bundles_route/bundles_route.test.ts b/src/optimize/bundles_route/bundles_route.test.ts index 8cf4e9d72685..83246a309e3d 100644 --- a/src/optimize/bundles_route/bundles_route.test.ts +++ b/src/optimize/bundles_route/bundles_route.test.ts @@ -118,21 +118,6 @@ describe('validation', () => { }); }); -describe('image', () => { - it('responds with exact file data', async () => { - const server = createServer(); - const response = await server.inject({ - url: '/1234/bundles/plugin/foo/image.png', - }); - - expect(response.statusCode).toBe(200); - const image = readFileSync(resolve(fooPluginFixture, 'image.png')); - expect(response.headers).toHaveProperty('content-length', image.length); - expect(response.headers).toHaveProperty('content-type', 'image/png'); - expect(image).toEqual(response.rawPayload); - }); -}); - describe('js file', () => { it('responds with no content-length and exact file data', async () => { const server = createServer();