Skip to content

Commit

Permalink
add old tests back
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleclindner committed Feb 26, 2021
1 parent 86b0bad commit 9292f4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions __tests__/metadata.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ const testFiles = (files) => describe.each(files)('fileName %s', (fileName, inFo
const newFileHash = await hasha.fromFile(processedFile, {algorithm: 'sha256'})
expect(cleanFileHash).toEqual(newFileHash)
})
/* itif(mode === MODE_JPG)('image is not corrupted - JPG', async () => {
itif(mode === MODE_JPG)('image is not corrupted - JPG', async () => {
await removeLocationFromFile(fileName, inFolder, outFolder)
const fileIsCorrupted = isCorrupted(processedFile)
expect(fileIsCorrupted).toEqual(false)
}) */
/* itif(MODE_IMG)('image is not corrupted - graphicsmagick check', async done => {
})
/*itif(MODE_IMG)('image is not corrupted - graphicsmagick check', async done => {
await removeLocationFromFile(fileName, inFolder, outFolder)
gm(processedFile).identify((err, data) => {
expect(err).toBe(null)
Expand All @@ -85,14 +85,14 @@ const testFiles = (files) => describe.each(files)('fileName %s', (fileName, inFo
expect(equality).toEqual(0.0)
done()
})
})
}) */
it('ffprobe corruption check', async done => {
await removeLocationFromFile(fileName, inFolder, outFolder)
ffprobe(processedFile, { path: ffprobeStatic.path }, function (err, info) {
expect(err).toEqual(null)
done()
})
}) */
})
})

const testFormat = (inFolder, outFolder, cleanFolder, testJpg) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"scripts": {
"build": "if [ -d lib ]; then rm lib/*; fi; yarn run babel src/ -d lib/ && flow-copy-source src lib",
"prepublish": "yarn run build",
"test": "node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage",
"test": "jest",
"test-multiple": "for i in {1..10}; do jest --runInBand --silent || (echo 'Failed after $i attempts' && break); done",
"remove-metadata-batch": "node scripts/batchRemoveMetadata.js",
"test:jenkins": "echo 'No Tests Implemented'"
Expand Down

0 comments on commit 9292f4a

Please sign in to comment.