From a4596cfd68489e3f94f14631d7b5746ba6796269 Mon Sep 17 00:00:00 2001 From: Romain Date: Mon, 5 Apr 2021 23:52:16 +0200 Subject: [PATCH] test: move HEIC tests to their own file --- test/integration/image-heic.test.js | 43 +++++++++++++++++++++++++++++ test/integration/image.test.js | 40 --------------------------- 2 files changed, 43 insertions(+), 40 deletions(-) create mode 100644 test/integration/image-heic.test.js diff --git a/test/integration/image-heic.test.js b/test/integration/image-heic.test.js new file mode 100644 index 0000000..b09f34c --- /dev/null +++ b/test/integration/image-heic.test.js @@ -0,0 +1,43 @@ +const diff = require('./diff') + +describe('image HEIC', () => { + it('can process a single-image HEIC file', done => { + diff.image({ + input: 'images/heic-single.heic', + expect: 'images/heic-single.jpg', + options: { + height: 300 + } + }, done) + }) + + it('can process a burst-image HEIC file', done => { + diff.image({ + input: 'images/heic-burst.heic', + expect: 'images/heic-burst.jpg', + options: { + height: 300 + } + }, done) + }) + + it('can process a live (photo + video) HEIC file', done => { + diff.image({ + input: 'images/heic-live.heic', + expect: 'images/heic-live.jpg', + options: { + height: 300 + } + }, done) + }) + + it('can process a HEIC with a P3 color profile', done => { + diff.image({ + input: 'images/heic-color-profile.heic', + expect: 'images/heic-color-profile.jpg', + options: { + height: 300 + } + }, done) + }, 10000) +}) diff --git a/test/integration/image.test.js b/test/integration/image.test.js index 3421326..347c56b 100644 --- a/test/integration/image.test.js +++ b/test/integration/image.test.js @@ -156,46 +156,6 @@ describe('image', () => { }, done) }) - it('can process a single-image HEIC file', done => { - diff.image({ - input: 'images/heic-single.heic', - expect: 'images/heic-single.jpg', - options: { - height: 300 - } - }, done) - }) - - it('can process a burst-image HEIC file', done => { - diff.image({ - input: 'images/heic-burst.heic', - expect: 'images/heic-burst.jpg', - options: { - height: 300 - } - }, done) - }) - - it('can process a live (photo + video) HEIC file', done => { - diff.image({ - input: 'images/heic-live.heic', - expect: 'images/heic-live.jpg', - options: { - height: 300 - } - }, done) - }) - - it('can process a HEIC with a P3 color profile', done => { - diff.image({ - input: 'images/heic-color-profile.heic', - expect: 'images/heic-color-profile.jpg', - options: { - height: 300 - } - }, done) - }, 10000) - const ORIENTATIONS = [1, 2, 3, 4, 5, 6, 7, 8] ORIENTATIONS.forEach((orientation) => {