UNPKG

node-lwip

Version:

Comprehensive, fast, and simple image processing and manipulation

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