mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 02:30:12 +02:00
Ensure test coverage of overlayWith error paths
This commit is contained in:
parent
4f1ac5717e
commit
022a2b1ade
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user