-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move HEIC tests to their own file
- Loading branch information
Showing
2 changed files
with
43 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters