Ensure test coverage of overlayWith error paths

This commit is contained in:
Lovell Fuller 2015-07-15 09:37:25 +01:00
parent 4f1ac5717e
commit 022a2b1ade

View File

@ -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);
});
});
}); });