Increase unit test coverage to ~95%

This commit is contained in:
Lovell Fuller
2014-10-21 12:22:23 +01:00
parent a531b5917e
commit 6cade5bd7f
10 changed files with 288 additions and 34 deletions

View File

@@ -22,6 +22,13 @@ describe('Colour space conversion', function() {
.toFile(fixtures.path('output.greyscale-gamma-2.2.jpg'), done);
});
it('Not to greyscale', function(done) {
sharp(fixtures.inputJpg)
.resize(320, 240)
.greyscale(false)
.toFile(fixtures.path('output.greyscale-not.jpg'), done);
});
it('From 1-bit TIFF to sRGB WebP [slow]', function(done) {
sharp(fixtures.inputTiff)
.webp()