remove faulty image tests

This commit is contained in:
Marc-Roig 2022-08-04 17:35:44 +02:00
parent 03c8ba6bba
commit d266c41c01
2 changed files with 0 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -4,11 +4,9 @@ const path = require('path');
const fs = require('fs');
const fse = require('fs-extra');
const _ = require('lodash');
const { isFaultyImage } = require('../../image-manipulation')();
const uploadService = require('../../upload')({});
const imageFilePath = path.join(__dirname, './image.png');
const corruptImageFilePath = path.join(__dirname, './faulty_image.png');
const tmpWorkingDirectory = path.join(__dirname, './tmp');
@ -89,9 +87,4 @@ describe('Upload image', () => {
// 1 for the original image, 1 for thumbnail, 2 for the responsive formats
expect(upload).toHaveBeenCalledTimes(4);
});
test('Upload corrupt image', async () => {
let fileData = getFileData(corruptImageFilePath);
expect(await isFaultyImage(fileData)).toBe(true);
});
});