mirror of
https://github.com/lovell/sharp.git
synced 2026-02-09 08:06:14 +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