Skip to content

Commit

Permalink
Ensure test coverage of overlayWith error paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Jul 15, 2015
1 parent 4f1ac57 commit 022a2b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/unit/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
});

0 comments on commit 022a2b1

Please sign in to comment.