UNPKG

node-lwip

Version:

Comprehensive, fast, and simple image processing and manipulation

23 lines (18 loc) 585 B
// methods should throw errors when arguments are invalid var should = require("should"), lwip = require('../../'), imgs = require('../imgs'); describe('batch.resize arguments validation', function() { var batch; before(function(done) { lwip.open(imgs.jpg.rgb, function(err, img) { batch = img.batch(); done(err); }); }); describe('invalid interpolation', function() { it('should throw an error', function() { batch.resize.bind(batch, 100, 100, 'foo').should.throwError(); }); }); });