Skip to content

Commit

Permalink
[Tests] remove optimize/image tests
Browse files Browse the repository at this point in the history
This test checks if image exists but this image was removed in the
renaming process at this commit: 3ecadd0.

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla committed Mar 25, 2021
1 parent 8c44e54 commit e3a9612
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/optimize/bundles_route/bundles_route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e3a9612

Please sign in to comment.