mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
322 B
18 lines
322 B
var assert = require('assert');
|
|
var fs = require('fs');
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
gm
|
|
.toBuffer(function (err, buffer) {
|
|
if (err) return finish(err);
|
|
|
|
assert.ok(buffer instanceof Buffer);
|
|
assert.ok(buffer.length);
|
|
|
|
finish();
|
|
})
|
|
}
|
|
|