Add support for miniswhite when using TIFF output

This commit is contained in:
Dennis Beatty
2023-09-26 14:38:34 +01:00
committed by Lovell Fuller
parent 0f24f0f214
commit 28aa176957
9 changed files with 29 additions and 2 deletions

View File

@@ -462,6 +462,18 @@ describe('TIFF', function () {
});
});
it('TIFF miniswhite true value does not throw error', function () {
assert.doesNotThrow(function () {
sharp().tiff({ miniswhite: true });
});
});
it('Invalid TIFF miniswhite value throws error', function () {
assert.throws(function () {
sharp().tiff({ miniswhite: 'true' });
});
});
it('Invalid TIFF tile value throws error', function () {
assert.throws(function () {
sharp().tiff({ tile: 'true' });