mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Fix for orientation values 1-8
This commit is contained in:
committed by
Lovell Fuller
parent
c66495b66c
commit
ebfc897bcf
@@ -337,9 +337,14 @@ describe('Image metadata', function() {
|
||||
sharp().withMetadata({orientation: -1});
|
||||
});
|
||||
});
|
||||
it('Zero orientation', function () {
|
||||
assert.throws(function () {
|
||||
sharp().withMetadata({ orientation: 0 });
|
||||
});
|
||||
});
|
||||
it('Too large orientation', function() {
|
||||
assert.throws(function() {
|
||||
sharp().withMetadata({orientation: 8});
|
||||
sharp().withMetadata({orientation: 9});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user