{"size": 242, "ext": "js", "max_stars_repo_path": "test/fail.js", "max_stars_repo_name": "laggyluke/node-passthru", "max_stars_repo_stars_event_min_datetime": "2015-09-30T13:16:01.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-01T13:35:03.000Z", "max_issues_repo_path": "test/fail.js", "max_issues_repo_name": "laggyluke/node-passthru", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/fail.js", "max_forks_repo_name": "laggyluke/node-passthru", "max_forks_repo_forks_event_min_datetime": "2016-06-30T21:25:03.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-01T13:35:04.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 18.6153846154, "max_line_length": 56, "alphanum_fraction": 0.5578512397}
var passthru = require('..');

setTimeout(function() {
  process.exit(0);
}, 100);

passthru(['/bin/bash', '-c', 'exit 42'], function(err) {
  if (!err || err.code !== 42) {
    // expected an error, but got none
    process.exit(1);
  }
});
