Remove previously-deprecated reductionEffort and speed options

This commit is contained in:
Lovell Fuller
2022-07-24 11:18:16 +01:00
parent b46ab510da
commit 76c4c51e2a
4 changed files with 7 additions and 33 deletions

View File

@@ -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' });