{"size": 564, "ext": "js", "max_stars_repo_path": "node_modules/download.jqueryui.com/node_modules/gm/test/background.js", "max_stars_repo_name": "marielb/towerofbabble", "max_stars_repo_stars_event_min_datetime": "2018-01-13T10:00:29.000Z", "max_stars_repo_stars_event_max_datetime": "2018-01-13T10:00:29.000Z", "max_issues_repo_path": "node_modules/download.jqueryui.com/node_modules/gm/test/background.js", "max_issues_repo_name": "marielb/towerofbabble", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/download.jqueryui.com/node_modules/gm/test/background.js", "max_forks_repo_name": "marielb/towerofbabble", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.8888888889, "max_line_length": 50, "alphanum_fraction": 0.6063829787}
var assert =require('assert')

module.exports = function (gm, dir, finish, GM) {

  var m = gm
  .crop(140,100)
  .background("#FF0000")
  .extent(340,300)

  var args = m.args();
  assert.equal('convert', args[0]);
  assert.equal('-crop', args[2]);
  assert.equal('140x100+0+0', args[3]);
  assert.equal('-background', args[4]);
  assert.equal('#FF0000', args[5]);
  assert.equal('-extent', args[6]);
  assert.equal('340x300', args[7]);

  if (!GM.integration)
    return finish();

  m
  .write(dir + '/background.jpg', function (err) {
    finish(err);
  });
}
