mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure test coverage of overlayWith error paths
This commit is contained in:
@@ -161,4 +161,15 @@ describe('Overlays', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it('Fail with empty String parameter', function() {
|
||||
assert.throws(function() {
|
||||
sharp().overlayWith('');
|
||||
});
|
||||
});
|
||||
|
||||
it('Fail with non-String parameter', function() {
|
||||
assert.throws(function() {
|
||||
sharp().overlayWith(1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user