diff --git a/test/unit/overlay.js b/test/unit/overlay.js index 82641e91..9eff6dc3 100755 --- a/test/unit/overlay.js +++ b/test/unit/overlay.js @@ -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); + }); + }); });