var assert = require('assert') module.exports = function (_, dir, finish, gm) { var svg_file; svg_file = new Buffer('', 'ascii'); // The following invocation should fail, because 'convert' // has no way of interpreting the file. gm( svg_file ).options({ imageMagick: true }).setFormat('png').toBuffer(function(err, buffer) { assert.ok(err, "Expecting error on this buffer"); }); return finish(); }