mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Remove previously-deprecated reductionEffort and speed options
This commit is contained in:
@@ -52,7 +52,7 @@ describe('HEIF', () => {
|
||||
});
|
||||
it('valid effort does not throw an error', () => {
|
||||
assert.doesNotThrow(() => {
|
||||
sharp().heif({ speed: 6 });
|
||||
sharp().heif({ effort: 6 });
|
||||
});
|
||||
});
|
||||
it('out of range effort should throw an error', () => {
|
||||
@@ -65,21 +65,6 @@ describe('HEIF', () => {
|
||||
sharp().heif({ effort: 'fail' });
|
||||
});
|
||||
});
|
||||
it('valid speed does not throw an error', () => {
|
||||
assert.doesNotThrow(() => {
|
||||
sharp().heif({ speed: 6 });
|
||||
});
|
||||
});
|
||||
it('out of range speed should throw an error', () => {
|
||||
assert.throws(() => {
|
||||
sharp().heif({ speed: 10 });
|
||||
});
|
||||
});
|
||||
it('invalid speed should throw an error', () => {
|
||||
assert.throws(() => {
|
||||
sharp().heif({ speed: 'fail' });
|
||||
});
|
||||
});
|
||||
it('invalid chromaSubsampling should throw an error', () => {
|
||||
assert.throws(() => {
|
||||
sharp().heif({ chromaSubsampling: 'fail' });
|
||||
|
||||
@@ -121,12 +121,6 @@ describe('WebP', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('invalid reductionEffort (deprecated) throws', () => {
|
||||
assert.throws(() => {
|
||||
sharp().webp({ reductionEffort: true });
|
||||
});
|
||||
});
|
||||
|
||||
it('out of range effort throws', () => {
|
||||
assert.throws(() => {
|
||||
sharp().webp({ effort: -1 });
|
||||
|
||||
Reference in New Issue
Block a user