Fail fast for unknown interpolator

This commit is contained in:
Lovell Fuller
2015-04-20 11:22:21 +01:00
parent 54f2243386
commit 46cc45c186
3 changed files with 21 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ describe('Normalization', function () {
sharp(fixtures.inputJpgWithLowContrast)
.gamma()
.greyscale()
.normalize()
.normalize(true)
.raw()
.toBuffer(function (err, data, info) {
if (err) throw err;