Skip to content

Commit

Permalink
tests; added test for aheckmann#109
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Dec 14, 2012
1 parent 1c39c96 commit 23596be
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/109.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var assert = require('assert')
var fs = require('fs')

module.exports = function (_, dir, finish, gm) {
if (!gm.integration)
return finish();

var original = dir + '/original.jpg';
var result = dir + '/fromBuffer.png';

var buf = fs.readFileSync(original);
var m = gm(buf, 'original.jpg');

m.identify(function (err, x) {
finish(err);
});

}

0 comments on commit 23596be

Please sign in to comment.